Class: Brainzlab::Components::Textarea
- Defined in:
- lib/brainzlab/components/input.rb
Instance Method Summary collapse
-
#initialize(error: false, **attrs) ⇒ Textarea
constructor
A new instance of Textarea.
- #view_template ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(error: false, **attrs) ⇒ Textarea
Returns a new instance of Textarea.
73 74 75 76 |
# File 'lib/brainzlab/components/input.rb', line 73 def initialize(error: false, **attrs) @error = error @attrs = attrs end |
Instance Method Details
#view_template ⇒ Object
78 79 80 81 82 83 84 |
# File 'lib/brainzlab/components/input.rb', line 78 def view_template(&) textarea( class: textarea_classes, **@attrs, & ) end |