Class: Metal::Generator::LiteralApply
- Inherits:
-
Object
- Object
- Metal::Generator::LiteralApply
- Defined in:
- lib/metal/generator.rb
Instance Method Summary collapse
- #generate(ctx, source) ⇒ Object
-
#initialize(name, args) ⇒ LiteralApply
constructor
A new instance of LiteralApply.
- #preprocess(ctx) ⇒ Object
Constructor Details
#initialize(name, args) ⇒ LiteralApply
Returns a new instance of LiteralApply.
335 336 337 338 |
# File 'lib/metal/generator.rb', line 335 def initialize(name, args) @name = name @args = args end |
Instance Method Details
#generate(ctx, source) ⇒ Object
340 341 342 |
# File 'lib/metal/generator.rb', line 340 def generate(ctx, source) source << "ctx->apply(@selector(rule_#{@name}:));\n" end |
#preprocess(ctx) ⇒ Object
339 |
# File 'lib/metal/generator.rb', line 339 def preprocess(ctx) end |