Class: Brainzlab::Components::Select
- Defined in:
- lib/brainzlab/components/input.rb
Instance Method Summary collapse
-
#initialize(error: false, **attrs) ⇒ Select
constructor
A new instance of Select.
- #view_template ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(error: false, **attrs) ⇒ Select
Returns a new instance of Select.
48 49 50 51 |
# File 'lib/brainzlab/components/input.rb', line 48 def initialize(error: false, **attrs) @error = error @attrs = attrs end |
Instance Method Details
#view_template ⇒ Object
53 54 55 56 57 58 59 |
# File 'lib/brainzlab/components/input.rb', line 53 def view_template(&) select( class: select_classes, **@attrs, & ) end |