Method: Pouch#initialize
- Defined in:
- lib/pouch.rb
#initialize(browser, start = false, opts = {}) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/pouch.rb', line 13 def initialize browser, start = false, opts = {} if start.is_a?(Hash) && opts.empty? opts = start start = false end @browser = browser @context = standardize opts[:context] if opts[:context] visit if self.respond_to?(:visit) && start contextualize_methods end |