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(**, &block) @builder = .delete(:builder) = @block = block @tag = self.class.tag_name @html_blocks = define_html_blocks end |