Class: Duby::AST::InlineCode

Inherits:
Object
  • Object
show all
Defined in:
lib/duby/ast/intrinsics.rb

Instance Method Summary collapse

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