Class: Gisture::Evaluator

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



3
4
5
# File 'lib/gisture/evaluator.rb', line 3

def raw
  @raw
end

#resultObject (readonly)

Returns the value of attribute result.



3
4
5
# File 'lib/gisture/evaluator.rb', line 3

def result
  @result
end

Instance Method Details

#evaluateObject



5
6
7
# File 'lib/gisture/evaluator.rb', line 5

def evaluate
  instance_eval { @result = eval raw }
end