Class: ReadXls::Evaluator::SstString

Inherits:
Object
  • Object
show all
Defined in:
lib/read_xls/evaluator/sst_string.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sst_index, builder) ⇒ SstString

Returns a new instance of SstString.



6
7
8
9
# File 'lib/read_xls/evaluator/sst_string.rb', line 6

def initialize(sst_index, builder)
  self.sst_index = sst_index
  self.builder   = builder
end

Instance Attribute Details

#builderObject

Returns the value of attribute builder.



4
5
6
# File 'lib/read_xls/evaluator/sst_string.rb', line 4

def builder
  @builder
end

#sst_indexObject

Returns the value of attribute sst_index.



4
5
6
# File 'lib/read_xls/evaluator/sst_string.rb', line 4

def sst_index
  @sst_index
end

Instance Method Details

#evaluateObject



11
12
13
# File 'lib/read_xls/evaluator/sst_string.rb', line 11

def evaluate
  builder.sst.index(sst_index)
end