Exception: NotEnoughOperandsException

Inherits:
Exception
  • Object
show all
Defined in:
lib/lamep/exceptions/not_enough_operands_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*argv) ⇒ NotEnoughOperandsException

Returns a new instance of NotEnoughOperandsException.



5
6
7
8
# File 'lib/lamep/exceptions/not_enough_operands_exception.rb', line 5

def initialize(*argv)
  @expression = argv[0].fetch(:expression)
  super
end

Instance Attribute Details

#expressionObject (readonly)

Returns the value of attribute expression.



3
4
5
# File 'lib/lamep/exceptions/not_enough_operands_exception.rb', line 3

def expression
  @expression
end