Module: Arbre::Element::BuilderMethods::ClassMethods

Defined in:
lib/arbre/element/builder_methods.rb

Instance Method Summary collapse

Instance Method Details

#builder_method(method_name) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/arbre/element/builder_methods.rb', line 12

def builder_method(method_name)
  BuilderMethods.class_eval <<-EOF, __FILE__, __LINE__
    def #{method_name}(*args, &block)
      insert_tag ::#{self.name}, *args, &block
    end
  EOF
end