module Extract::Tree::Cell

Public Instance Methods

col() click to toggle source
# File lib/extract/tree/cell.rb, line 22
def col
  c.text_value
end
deps() click to toggle source
# File lib/extract/tree/cell.rb, line 25
def deps
  [proper_cell]
end
excel_value() click to toggle source
# File lib/extract/tree/cell.rb, line 10
def excel_value
  res = find_sheet[proper_cell]
  #raise proper_cell if text_value == "-A2"
  if res.present?
    leading_neg? ? res * -1 : res
  else
    res
  end
end
leading_neg?() click to toggle source
# File lib/extract/tree/cell.rb, line 7
def leading_neg?
  text_value[0..0] == '-'
end
proper_cell() click to toggle source
# File lib/extract/tree/cell.rb, line 4
def proper_cell
  text_value.gsub("-","").gsub("$","")
end
row() click to toggle source
# File lib/extract/tree/cell.rb, line 19
def row
  r.text_value.to_i
end
tt() click to toggle source
# File lib/extract/tree/cell.rb, line 28
def tt
  :cell
end