Module: Taka::DOM::HTML::TextAreaElement

Includes:
FieldSetElement
Defined in:
lib/taka/dom/html/text_area_element.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from FieldSetElement

#form

Instance Attribute Details

#defaultValueObject

Returns the value of attribute defaultValue.



7
8
9
# File 'lib/taka/dom/html/text_area_element.rb', line 7

def defaultValue
  @defaultValue
end

Class Method Details

.extended(textarea) ⇒ Object



10
11
12
# File 'lib/taka/dom/html/text_area_element.rb', line 10

def extended textarea
  textarea.defaultValue ||= textarea.inner_text
end

Instance Method Details

#blurObject



35
36
# File 'lib/taka/dom/html/text_area_element.rb', line 35

def blur
end

#colsObject



15
16
17
# File 'lib/taka/dom/html/text_area_element.rb', line 15

def cols
  (cols = self['cols']) && cols.to_i
end

#focusObject



38
39
# File 'lib/taka/dom/html/text_area_element.rb', line 38

def focus
end

#nameObject



23
24
25
# File 'lib/taka/dom/html/text_area_element.rb', line 23

def name
  self['name']
end

#rowsObject



19
20
21
# File 'lib/taka/dom/html/text_area_element.rb', line 19

def rows
  (rows = self['rows']) && rows.to_i
end

#selectObject



41
42
# File 'lib/taka/dom/html/text_area_element.rb', line 41

def select
end

#tabIndexObject



27
28
29
# File 'lib/taka/dom/html/text_area_element.rb', line 27

def tabIndex
  (self['tabindex'] || 0).to_i
end

#typeObject



31
32
33
# File 'lib/taka/dom/html/text_area_element.rb', line 31

def type
  node_name
end

#valueObject



44
45
46
# File 'lib/taka/dom/html/text_area_element.rb', line 44

def value
  inner_text
end