Class: Curly::Form

Inherits:
Object
  • Object
show all
Defined in:
lib/highrise/curly.rb

Instance Method Summary collapse

Constructor Details

#initialize(element) ⇒ Form

Returns a new instance of Form.



76
77
78
# File 'lib/highrise/curly.rb', line 76

def initialize(element)
  @node = element
end

Instance Method Details

#elementsObject



80
81
82
# File 'lib/highrise/curly.rb', line 80

def elements
  @node.search('input, button, select, textarea')
end