Class: Spreadshit::Formula::Reference

Inherits:
Struct
  • Object
show all
Defined in:
lib/spreadshit/formula.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#colObject

Returns the value of attribute col

Returns:

  • (Object)

    the current value of col



30
31
32
# File 'lib/spreadshit/formula.rb', line 30

def col
  @col
end

#rowObject

Returns the value of attribute row

Returns:

  • (Object)

    the current value of row



30
31
32
# File 'lib/spreadshit/formula.rb', line 30

def row
  @row
end

Instance Method Details

#addressObject



31
32
33
# File 'lib/spreadshit/formula.rb', line 31

def address
  [col, row].join
end

#to_sObject



35
36
37
# File 'lib/spreadshit/formula.rb', line 35

def to_s
  address
end