Class: Watir::FramedDriver Private
- Defined in:
- lib/watir-webdriver/elements/frame.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
another hack..
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?) private
-
#initialize(element, driver) ⇒ FramedDriver
constructor
private
A new instance of FramedDriver.
Constructor Details
#initialize(element, driver) ⇒ FramedDriver
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of FramedDriver.
68 69 70 71 |
# File 'lib/watir-webdriver/elements/frame.rb', line 68 def initialize(element, driver) @element = element @driver = driver end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &blk) ⇒ Object (private)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
86 87 88 89 90 91 92 93 |
# File 'lib/watir-webdriver/elements/frame.rb', line 86 def method_missing(meth, *args, &blk) if @driver.respond_to?(meth) switch! @driver.send(meth, *args, &blk) else @element.send(meth, *args, &blk) end end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
73 74 75 |
# File 'lib/watir-webdriver/elements/frame.rb', line 73 def ==(other) @element == other.element end |