Class: Atomy::BootstrapHelper::WithGrammar

Inherits:
Object
  • Object
show all
Defined in:
lib/atomy/bootstrap.rb

Instance Method Summary collapse

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