Class: Horseman::Dom::FormField

Inherits:
Element
  • Object
show all
Defined in:
lib/horseman/dom/form.rb

Instance Attribute Summary collapse

Attributes inherited from Element

#id, #name

Instance Method Summary collapse

Methods inherited from Element

#initialize

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

#typeObject

Returns the value of attribute type.



25
26
27
# File 'lib/horseman/dom/form.rb', line 25

def type
  @type
end

#valueObject

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

Returns:

  • (Boolean)


30
31
32
# File 'lib/horseman/dom/form.rb', line 30

def respond_to?(method_sym, include_private = false)
  true
end