Class: Rly::PlyDump::TinyContext

Inherits:
Object
  • Object
show all
Defined in:
lib/rly/parse/ply_dump.rb

Instance Method Summary collapse

Constructor Details

#initialize(ctx) ⇒ TinyContext


40
41
42
# File 'lib/rly/parse/ply_dump.rb', line 40

def initialize(ctx)
  @ctx = ctx
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m) ⇒ Object


48
49
50
# File 'lib/rly/parse/ply_dump.rb', line 48

def method_missing(m)
  @ctx[m]
end

Instance Method Details

#get_bindingObject


44
45
46
# File 'lib/rly/parse/ply_dump.rb', line 44

def get_binding
  binding()
end