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

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