Class: ExpressionInterpreter::Operand
- Inherits:
-
Object
- Object
- ExpressionInterpreter::Operand
- Defined in:
- lib/expression_interpreter.rb
Instance Attribute Summary collapse
-
#operation ⇒ Object
Returns the value of attribute operation.
-
#replaced ⇒ Object
Returns the value of attribute replaced.
Instance Method Summary collapse
-
#initialize(operation, replaced) ⇒ Operand
constructor
A new instance of Operand.
Constructor Details
#initialize(operation, replaced) ⇒ Operand
Returns a new instance of Operand.
211 212 213 214 |
# File 'lib/expression_interpreter.rb', line 211 def initialize(operation, replaced) @operation = operation @replaced = replaced end |
Instance Attribute Details
#operation ⇒ Object
Returns the value of attribute operation.
210 211 212 |
# File 'lib/expression_interpreter.rb', line 210 def operation @operation end |
#replaced ⇒ Object
Returns the value of attribute replaced.
210 211 212 |
# File 'lib/expression_interpreter.rb', line 210 def replaced @replaced end |