Class: Duby::AST::InlineCode
- Inherits:
-
Object
- Object
- Duby::AST::InlineCode
- Defined in:
- lib/duby/ast/intrinsics.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ InlineCode
constructor
A new instance of InlineCode.
- #inline(transformer, call) ⇒ Object
Constructor Details
#initialize(&block) ⇒ InlineCode
Returns a new instance of InlineCode.
250 251 252 |
# File 'lib/duby/ast/intrinsics.rb', line 250 def initialize(&block) @block = block end |
Instance Method Details
#inline(transformer, call) ⇒ Object
254 255 256 |
# File 'lib/duby/ast/intrinsics.rb', line 254 def inline(transformer, call) @block.call(transformer, call) end |