class Ferrum::Browser::Options::Base

Constants

BROWSER_HOST
BROWSER_PORT

Public Class Methods

options() click to toggle source
# File lib/ferrum/browser/options/base.rb, line 14
def self.options
  instance
end

Public Instance Methods

detect_path() click to toggle source
# File lib/ferrum/browser/options/base.rb, line 26
def detect_path
  if Ferrum.mac?
    self.class::MAC_BIN_PATH.find { |n| File.exist?(n) }
  else
    self.class::LINUX_BIN_PATH.find do |name|
      path = Cliver.detect(name) and break(path)
    end
  end
end
except(*keys) click to toggle source
# File lib/ferrum/browser/options/base.rb, line 22
def except(*keys)
  to_h.reject { |n, _| keys.include?(n) }
end
merge_default(flags, options) click to toggle source
# File lib/ferrum/browser/options/base.rb, line 40
def merge_default(flags, options)
  raise NotImplementedError
end
merge_required(flags, options, user_data_dir) click to toggle source
# File lib/ferrum/browser/options/base.rb, line 36
def merge_required(flags, options, user_data_dir)
  raise NotImplementedError
end
to_h() click to toggle source
# File lib/ferrum/browser/options/base.rb, line 18
def to_h
  self.class::DEFAULT_OPTIONS
end