Class: Horseman::Dom::FormField
- Defined in:
- lib/horseman/dom/form.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Element
Instance Method Summary collapse
- #focus(argument = nil) ⇒ Object
- #method_missing(method, *arguments, &block) ⇒ Object
- #respond_to?(method_sym, include_private = false) ⇒ Boolean
Methods inherited from Element
Constructor Details
This class inherits a constructor from Horseman::Dom::Element
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *arguments, &block) ⇒ Object
34 35 36 |
# File 'lib/horseman/dom/form.rb', line 34 def method_missing(method, *arguments, &block) puts "Not implemented in FormField: #{method} #{arguments.join(',')}" end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
25 26 27 |
# File 'lib/horseman/dom/form.rb', line 25 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
25 26 27 |
# File 'lib/horseman/dom/form.rb', line 25 def value @value end |
Instance Method Details
#focus(argument = nil) ⇒ Object
27 28 |
# File 'lib/horseman/dom/form.rb', line 27 def focus(argument=nil) end |
#respond_to?(method_sym, include_private = false) ⇒ Boolean
30 31 32 |
# File 'lib/horseman/dom/form.rb', line 30 def respond_to?(method_sym, include_private = false) true end |