Class: FormObjectModel::Field
- Inherits:
-
Struct
- Object
- Struct
- FormObjectModel::Field
- Defined in:
- lib/form_object_model/field.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#locator ⇒ Object
Returns the value of attribute locator.
-
#name ⇒ Object
Returns the value of attribute name.
-
#page ⇒ Object
Returns the value of attribute page.
Instance Method Summary collapse
Instance Attribute Details
#locator ⇒ Object
Returns the value of attribute locator
2 3 4 |
# File 'lib/form_object_model/field.rb', line 2 def locator @locator end |
#name ⇒ Object
Returns the value of attribute name
2 3 4 |
# File 'lib/form_object_model/field.rb', line 2 def name @name end |
#page ⇒ Object
Returns the value of attribute page
2 3 4 |
# File 'lib/form_object_model/field.rb', line 2 def page @page end |
Instance Method Details
#==(other) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/form_object_model/field.rb', line 3 def ==(other) if respond_to?(:has_value?) has_value? other else super end end |