Class: Ruleby::Ferrari::FunctionBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/dsl/ferrari.rb

Instance Method Summary collapse

Constructor Details

#initialize(args, block) ⇒ FunctionBuilder

Returns a new instance of FunctionBuilder.



324
325
326
327
# File 'lib/dsl/ferrari.rb', line 324

def initialize(args, block)
  @args = args
  @function = block
end

Instance Method Details

#build_atom(tag, template) ⇒ Object



329
330
331
# File 'lib/dsl/ferrari.rb', line 329

def build_atom(tag, template)
  Core::FunctionAtom.new(tag, template, @args, @function)
end