Class: IEgrip::Frames

Inherits:
GripWrapper show all
Includes:
Retry
Defined in:
lib/iegrip.rb

Overview

IE.Document.Frames

Constant Summary

Constants included from Retry

Retry::RETRY_INTERVAL

Instance Method Summary collapse

Methods included from Retry

#retryCheck, #retryGetTarget

Methods inherited from GripWrapper

#initialize, #inspect, #ole_methodNames, #raw

Constructor Details

This class inherits a constructor from IEgrip::GripWrapper

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class IEgrip::GripWrapper

Instance Method Details

#[](index) ⇒ Object



724
725
726
727
728
729
# File 'lib/iegrip.rb', line 724

def [](index)
  result = retryCheck { index < @raw_object.length }
  return(nil) unless result
  
  Frame.new(@raw_object.item(index), @ie_obj)
end

#eachObject



735
736
737
738
739
740
741
742
# File 'lib/iegrip.rb', line 735

def each
  index = 0
  while index < @raw_object.length
    raw_frame = @raw_object.item(index)
    yield Frame.new(raw_frame, @ie_obj)
    index += 1
  end
end

#sizeObject



731
732
733
# File 'lib/iegrip.rb', line 731

def size
  @raw_object.length
end