Method: Formular::Element#initialize

Defined in:
lib/formular/element.rb

#initialize(**options, &block) ⇒ Element

Returns a new instance of Element.



77
78
79
80
81
82
83
84
85
# File 'lib/formular/element.rb', line 77

def initialize(**options, &block)
  @builder = options.delete(:builder)
  @options = options
  normalize_options
  process_options
  @block = block
  @tag = self.class.tag_name
  @html_blocks = define_html_blocks
end