Class: Applitools::Selenium::DomCapture::DomParts
- Inherits:
-
Object
- Object
- Applitools::Selenium::DomCapture::DomParts
- Defined in:
- lib/applitools/selenium/dom_capture/dom_capture.rb
Instance Attribute Summary collapse
-
#dom_part_collectors ⇒ Object
Returns the value of attribute dom_part_collectors.
Instance Method Summary collapse
- #collectors ⇒ Object
-
#initialize(*args) ⇒ DomParts
constructor
A new instance of DomParts.
Constructor Details
#initialize(*args) ⇒ DomParts
Returns a new instance of DomParts.
156 157 158 159 |
# File 'lib/applitools/selenium/dom_capture/dom_capture.rb', line 156 def initialize(*args) self.dom_part_collectors = args @index = 0 end |
Instance Attribute Details
#dom_part_collectors ⇒ Object
Returns the value of attribute dom_part_collectors.
155 156 157 |
# File 'lib/applitools/selenium/dom_capture/dom_capture.rb', line 155 def dom_part_collectors @dom_part_collectors end |
Instance Method Details
#collectors ⇒ Object
161 162 163 164 165 166 167 168 |
# File 'lib/applitools/selenium/dom_capture/dom_capture.rb', line 161 def collectors @collectors ||= Enumerator.new(dom_part_collectors.length) do |y| loop do y << dom_part_collectors[@index] @index += 1 end end end |