Class: HtmlCom::Textarea
- Inherits:
-
InputElement
- Object
- Element
- InputElement
- HtmlCom::Textarea
- Defined in:
- lib/htmlcom.rb
Instance Method Summary collapse
-
#initialize(value = '', text: value, label: nil, id: nil) ⇒ Textarea
constructor
A new instance of Textarea.
Methods inherited from Element
#build, #html_element, #to_doc
Constructor Details
#initialize(value = '', text: value, label: nil, id: nil) ⇒ Textarea
Returns a new instance of Textarea.
418 419 420 421 422 423 424 425 426 |
# File 'lib/htmlcom.rb', line 418 def initialize(value='', text: value, label: nil, id: nil) @tag = 'textarea' @htmltag = 'textarea' @id = id @label = label super({@tag.to_sym => text}) end |