Class: Watir::TableElementCollection
- Inherits:
-
ElementCollection
- Object
- ElementCollection
- Watir::TableElementCollection
- Defined in:
- lib/watir-classic/element_collection.rb
Overview
This class represents table elements collection.
Direct Known Subclasses
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(container, specifiers, ole_collection = nil) ⇒ TableElementCollection
constructor
A new instance of TableElementCollection.
Methods inherited from ElementCollection
#[], #first, #inspect, #last, #length, #to_s
Constructor Details
#initialize(container, specifiers, ole_collection = nil) ⇒ TableElementCollection
Returns a new instance of TableElementCollection.
86 87 88 89 |
# File 'lib/watir-classic/element_collection.rb', line 86 def initialize(container, specifiers, ole_collection=nil) super container, specifiers @ole_collection = ole_collection end |
Instance Method Details
#each ⇒ Object
92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/watir-classic/element_collection.rb', line 92 def each if @ole_collection elements = [] @ole_collection.each {|element| elements << element_class.new(@container, :ole_object => element)} super do |element| yield element if elements.include?(element) end else super end end |