Sha256: 39064c8a8d38a6f0fc4ef9f3b10fa41f4279b82239048f3236b579e9e02e4a58

Contents?: true

Size: 278 Bytes

Versions: 10

Compression:

Stored size: 278 Bytes

Contents

module PageMagic
  module Browser

    class << self
      attr_writer :default
      def session
        @session ||= PageMagic.session(default)
      end

      def default
        @default || :firefox
      end
    end

    def browser
      Browser.session
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
page_magic-0.11.0.alpha6 lib/page_magic/browser.rb
page_magic-1.0.0.alpha2 lib/page_magic/browser.rb
page_magic-1.0.0.alpha lib/page_magic/browser.rb
page_magic-0.11.0.alpha5 lib/page_magic/browser.rb
page_magic-0.11.0.alpha3 lib/page_magic/browser.rb
page_magic-0.11.0.alpha2 lib/page_magic/browser.rb
page_magic-0.11.0.alpha lib/page_magic/browser.rb
page_magic-0.10.0 lib/page_magic/browser.rb
page_magic-0.9.6 lib/page_magic/browser.rb
page_magic-0.9.5 lib/page_magic/browser.rb