Class: Q::ToplevelScope
Instance Method Summary collapse
-
#initialize ⇒ ToplevelScope
constructor
A new instance of ToplevelScope.
Methods inherited from Scope
#[], #[]=, #args, #args=, #has?, #has_own?, #inspect, #this, #this=
Constructor Details
#initialize ⇒ ToplevelScope
Returns a new instance of ToplevelScope.
40 41 42 43 44 45 46 |
# File 'lib/q/vm.rb', line 40 def initialize super() self['puts'] = lambda { |scope| puts scope.args } end |