Class: Romanesco::Expression

Inherits:
Object
  • Object
show all
Defined in:
lib/romanesco/elements/expression.rb

Direct Known Subclasses

Operand, Operator

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#parentObject

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

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/romanesco/elements/expression.rb', line 10

def evaluate(options)
  raise NotImplementedError
end