Class: Atomy::BootstrapHelper::WithGrammar
- Defined in:
- lib/atomy/bootstrap.rb
Instance Method Summary collapse
- #bytecode(gen, mod) ⇒ Object
-
#initialize(body) ⇒ WithGrammar
constructor
A new instance of WithGrammar.
Constructor Details
#initialize(body) ⇒ WithGrammar
Returns a new instance of WithGrammar.
219 220 221 |
# File 'lib/atomy/bootstrap.rb', line 219 def initialize(body) @body = body end |
Instance Method Details
#bytecode(gen, mod) ⇒ Object
223 224 225 226 |
# File 'lib/atomy/bootstrap.rb', line 223 def bytecode(gen, mod) gen.create_block(build_block(gen.state.scope, mod)) gen.send(:call, 0) end |