Class: Watir::AttributeLengthPairs::AttributeLengthHolder

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#attributeObject

Returns the value of attribute attribute.



25
26
27
# File 'lib/watir/collections.rb', line 25

def attribute
  @attribute
end

#lengthObject

Returns the value of attribute length.



26
27
28
# File 'lib/watir/collections.rb', line 26

def length
  @length
end