Class: ExpressionInterpreter::Operand

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#operationObject

Returns the value of attribute operation.



210
211
212
# File 'lib/expression_interpreter.rb', line 210

def operation
  @operation
end

#replacedObject

Returns the value of attribute replaced.



210
211
212
# File 'lib/expression_interpreter.rb', line 210

def replaced
  @replaced
end