Class: Watir::AttributeLengthPairs::AttributeLengthHolder
- Inherits:
-
Object
- Object
- Watir::AttributeLengthPairs::AttributeLengthHolder
- Defined in:
- lib/watir/collections.rb
Overview
This class is used as part of the .show method of the iterators class it would not normally be used by a user
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#length ⇒ Object
Returns the value of attribute length.
Instance Method Summary collapse
-
#initialize(attrib, length) ⇒ AttributeLengthHolder
constructor
A new instance of AttributeLengthHolder.
Constructor Details
#initialize(attrib, length) ⇒ AttributeLengthHolder
Returns a new instance of AttributeLengthHolder.
28 29 30 31 |
# File 'lib/watir/collections.rb', line 28 def initialize(attrib, length) @attribute = attrib @length = length end |
Instance Attribute Details
#attribute ⇒ Object
Returns the value of attribute attribute.
25 26 27 |
# File 'lib/watir/collections.rb', line 25 def attribute @attribute end |
#length ⇒ Object
Returns the value of attribute length.
26 27 28 |
# File 'lib/watir/collections.rb', line 26 def length @length end |