Class: Peruby::Op::Prefix
Overview
Pre-increment/decrement returning the updated value.
Instance Method Summary collapse
-
#initialize(operator, expression) ⇒ Prefix
constructor
A new instance of Prefix.
- #run(env, context) ⇒ Object
Methods inherited from Base
#argument_cells, #local_slot, #lvalue, #run_subroutine, #to_callable, #warning_directive?
Constructor Details
#initialize(operator, expression) ⇒ Prefix
Returns a new instance of Prefix.
74 75 76 77 |
# File 'lib/peruby/op/expression.rb', line 74 def initialize(operator, expression) @operator = operator @expression = expression end |