Class: Curly::Form
- Inherits:
-
Object
- Object
- Curly::Form
- Defined in:
- lib/highrise/curly.rb
Instance Method Summary collapse
- #elements ⇒ Object
-
#initialize(element) ⇒ Form
constructor
A new instance of Form.
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
#elements ⇒ Object
80 81 82 |
# File 'lib/highrise/curly.rb', line 80 def elements @node.search('input, button, select, textarea') end |