Module: Eloqua::Builder::Templates::ClassMethods

Defined in:
lib/eloqua/builder/templates.rb

Instance Method Summary collapse

Instance Method Details

#builder_template(name, *args) ⇒ Object



15
16
17
18
19
20
# File 'lib/eloqua/builder/templates.rb', line 15

def builder_template(name, *args)
  template = builder_templates[name]
  Proc.new do |xml|
    template.call(xml, *args)
  end
end

#define_builder_template(name, &block) ⇒ Object



22
23
24
# File 'lib/eloqua/builder/templates.rb', line 22

def define_builder_template(name, &block)
  builder_templates[name] = block
end