Class: Rly::PlyDump::TinyContext
- Inherits:
-
Object
- Object
- Rly::PlyDump::TinyContext
- Defined in:
- lib/rly/parse/ply_dump.rb
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(ctx) ⇒ TinyContext
constructor
A new instance of TinyContext.
- #method_missing(m) ⇒ Object
Constructor Details
#initialize(ctx) ⇒ TinyContext
Returns a new instance of 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_binding ⇒ Object
44 45 46 |
# File 'lib/rly/parse/ply_dump.rb', line 44 def get_binding binding() end |