Class: IEgrip::Frames

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

Overview

IE.Document.Frames

Instance Method Summary collapse

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



643
644
645
646
# File 'lib/iegrip.rb', line 643

def [](index)
  return(nil) if index >= @raw_object.length
  Frame.new(@raw_object.item(index), @ie_obj)
end

#eachObject



652
653
654
655
656
657
658
659
# File 'lib/iegrip.rb', line 652

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



648
649
650
# File 'lib/iegrip.rb', line 648

def size
  @raw_object.length
end