Class: ReadXls::Evaluator::SstString
- Inherits:
-
Object
- Object
- ReadXls::Evaluator::SstString
- Defined in:
- lib/read_xls/evaluator/sst_string.rb
Instance Attribute Summary collapse
-
#builder ⇒ Object
Returns the value of attribute builder.
-
#sst_index ⇒ Object
Returns the value of attribute sst_index.
Instance Method Summary collapse
- #evaluate ⇒ Object
-
#initialize(sst_index, builder) ⇒ SstString
constructor
A new instance of SstString.
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
#builder ⇒ Object
Returns the value of attribute builder.
4 5 6 |
# File 'lib/read_xls/evaluator/sst_string.rb', line 4 def builder @builder end |
#sst_index ⇒ Object
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
#evaluate ⇒ Object
11 12 13 |
# File 'lib/read_xls/evaluator/sst_string.rb', line 11 def evaluate builder.sst.index(sst_index) end |