Class: Mork::Raw::Cell

Inherits:
Object
  • Object
show all
Defined in:
lib/mork/raw/cell.rb

Overview

A cell in a row

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw:) ⇒ Cell

Returns a new instance of Cell.



12
13
14
# File 'lib/mork/raw/cell.rb', line 12

def initialize(raw:)
  @raw = raw
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



10
11
12
# File 'lib/mork/raw/cell.rb', line 10

def raw
  @raw
end

Instance Method Details

#resolve(dictionaries:) ⇒ Object



16
17
18
19
# File 'lib/mork/raw/cell.rb', line 16

def resolve(dictionaries:)
  key, value = parse(dictionaries)
  Resolved::Cell.new(key: key, value: value)
end