Sha256: 78617e069ab107df17b68feff349293e35f441ff9b38266cfedda0507ef64d92

Contents?: true

Size: 416 Bytes

Versions: 18

Compression:

Stored size: 416 Bytes

Contents

module OperaWatir
  module Compat
    module Browser
      extend Forwardable

      def method_missing(method, *args, &blk)
        if active_window.respond_to? method
          active_window.send(method, *args, &blk)
        else
          super
        end
      end

      # Class#type is defined by Ruby, it will never reach
      # #method_missing.
      def_delegator :active_window, :type

    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
operawatir-0.7.pre4-jruby lib/operawatir/compat/browser.rb
operawatir-0.7.pre3-jruby lib/operawatir/compat/browser.rb
operawatir-0.7.pre2-jruby lib/operawatir/compat/browser.rb
operawatir-0.7.pre1-jruby lib/operawatir/compat/browser.rb
operawatir-0.6.pre1-jruby lib/operawatir/compat/browser.rb
operawatir-0.5.1-jruby lib/operawatir/compat/browser.rb
operawatir-0.5-jruby lib/operawatir/compat/browser.rb
operawatir-0.5.pre3-jruby lib/operawatir/compat/browser.rb
operawatir-0.5.pre2-jruby lib/operawatir/compat/browser.rb
operawatir-0.5.pre1-jruby lib/operawatir/compat/browser.rb
operawatir-0.4.3.pre1-jruby lib/operawatir/compat/browser.rb
operawatir-0.4.2-jruby lib/operawatir/compat/browser.rb
operawatir-0.4.1-jruby lib/operawatir/compat/browser.rb
operawatir-0.4.1.pre7-jruby lib/operawatir/compat/browser.rb
operawatir-0.4.1.pre6-jruby lib/operawatir/compat/browser.rb
operawatir-0.4.1.pre5-jruby lib/operawatir/compat/browser.rb
operawatir-0.4.1.pre4-jruby lib/operawatir/compat/browser.rb
operawatir-0.4.1.pre3-jruby lib/operawatir/compat/browser.rb