Exception: NotEnoughOperandsException
- Inherits:
-
Exception
- Object
- Exception
- NotEnoughOperandsException
- Defined in:
- lib/lamep/exceptions/not_enough_operands_exception.rb
Instance Attribute Summary collapse
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
Instance Method Summary collapse
-
#initialize(*argv) ⇒ NotEnoughOperandsException
constructor
A new instance of NotEnoughOperandsException.
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
#expression ⇒ Object (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 |