Class: Metal::Generator::LiteralSuper
- Inherits:
-
Object
- Object
- Metal::Generator::LiteralSuper
- Defined in:
- lib/metal/generator.rb
Instance Method Summary collapse
- #generate(ctx, source) ⇒ Object
-
#initialize(args) ⇒ LiteralSuper
constructor
A new instance of LiteralSuper.
- #preprocess(ctx) ⇒ Object
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 |