Class: HtmlCom::Textarea

Inherits:
InputElement show all
Defined in:
lib/htmlcom.rb

Instance Method Summary collapse

Methods inherited from Element

#build, #html_element, #to_doc, #to_html

Constructor Details

#initialize(value = '', text: value, label: nil, id: nil) ⇒ Textarea

Returns a new instance of Textarea.



422
423
424
425
426
427
428
429
430
# File 'lib/htmlcom.rb', line 422

def initialize(value='', text: value, label: nil, id: nil)

  @tag = 'textarea'
  @htmltag = 'textarea'
  @id = id
  @label = label
  super({@tag.to_sym => text})

end