Module: Browsate
- Defined in:
- lib/browsate.rb,
lib/browsate/browser.rb,
lib/browsate/version.rb,
lib/browsate/configuration.rb
Defined Under Namespace
Classes: Browser, Configuration, Error
Constant Summary
collapse
- VERSION =
"0.1.1"
Class Method Summary
collapse
Class Method Details
.browser ⇒ Object
27
28
29
|
# File 'lib/browsate.rb', line 27
def browser
@browser ||= Browser.new
end
|
.configuration ⇒ Object
23
24
25
|
# File 'lib/browsate.rb', line 23
def configuration
@configuration ||= Configuration.new
end
|
18
19
20
21
|
# File 'lib/browsate.rb', line 18
def configure
yield configuration if block_given?
configuration
end
|
.logger ⇒ Object
31
32
33
|
# File 'lib/browsate.rb', line 31
def logger
@logger ||= configuration.logger
end
|
.reset! ⇒ Object
35
36
37
38
|
# File 'lib/browsate.rb', line 35
def reset!
@browser&.close
@browser = nil
end
|