Class: Metal::Generator::LiteralSuper

Inherits:
Object
  • Object
show all
Defined in:
lib/metal/generator.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ LiteralSuper

Returns a new instance of LiteralSuper.



318
319
320
# File 'lib/metal/generator.rb', line 318

def initialize(args)
	@args = args
end

Instance Method Details

#generate(ctx, source) ⇒ Object



322
323
324
# File 'lib/metal/generator.rb', line 322

def generate(ctx, source)
	source << "[super rule_#{ctx.rule.name}:ctx];\n"
end

#preprocess(ctx) ⇒ Object



321
# File 'lib/metal/generator.rb', line 321

def preprocess(ctx) end