Class: PageMagic::Element::Selector::Model
- Defined in:
- lib/page_magic/element/selector/model.rb
Overview
class model - represents the parameters for capybara finder methods
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(args, options = {}) ⇒ Model
constructor
A new instance of Model.
Constructor Details
#initialize(args, options = {}) ⇒ Model
Returns a new instance of Model.
10 11 12 13 |
# File 'lib/page_magic/element/selector/model.rb', line 10 def initialize(args, = {}) @args = args @options = end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
8 9 10 |
# File 'lib/page_magic/element/selector/model.rb', line 8 def args @args end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/page_magic/element/selector/model.rb', line 8 def @options end |
Instance Method Details
#==(other) ⇒ Object
15 16 17 |
# File 'lib/page_magic/element/selector/model.rb', line 15 def ==(other) other.args == args && other. == end |