Class: Gisture::Evaluator
- Inherits:
-
Object
- Object
- Gisture::Evaluator
- Defined in:
- lib/gisture/evaluator.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
3 4 5 |
# File 'lib/gisture/evaluator.rb', line 3 def raw @raw end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
3 4 5 |
# File 'lib/gisture/evaluator.rb', line 3 def result @result end |
Instance Method Details
#evaluate ⇒ Object
5 6 7 |
# File 'lib/gisture/evaluator.rb', line 5 def evaluate instance_eval { @result = eval raw } end |