Class: Peruby::Op::ArrayLiteral
Overview
Anonymous array reference.
Instance Method Summary collapse
-
#initialize(items) ⇒ ArrayLiteral
constructor
A new instance of ArrayLiteral.
- #run(env, context) ⇒ Object
Methods inherited from Base
#argument_cells, #local_slot, #lvalue, #run_subroutine, #to_callable, #warning_directive?
Constructor Details
#initialize(items) ⇒ ArrayLiteral
Returns a new instance of ArrayLiteral.
76 77 78 |
# File 'lib/peruby/op/list.rb', line 76 def initialize(items) @items = items end |