Class: Romanesco::Expression
- Inherits:
-
Object
- Object
- Romanesco::Expression
- Defined in:
- lib/romanesco/elements/expression.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
- #evaluate(options) ⇒ Object
-
#initialize(expression_part) ⇒ Expression
constructor
A new instance of Expression.
Constructor Details
#initialize(expression_part) ⇒ Expression
Returns a new instance of Expression.
6 7 8 |
# File 'lib/romanesco/elements/expression.rb', line 6 def initialize(expression_part) @expression_part = expression_part end |
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
4 5 6 |
# File 'lib/romanesco/elements/expression.rb', line 4 def parent @parent end |
Instance Method Details
#evaluate(options) ⇒ Object
10 11 12 |
# File 'lib/romanesco/elements/expression.rb', line 10 def evaluate() raise NotImplementedError end |