Class: Distil::Browser
- Inherits:
-
Object
- Object
- Distil::Browser
- Defined in:
- lib/distil/browser.rb
Instance Method Summary collapse
- #host ⇒ Object
- #linux? ⇒ Boolean
- #macos? ⇒ Boolean
- #open(url) ⇒ Object
- #setup ⇒ Object
- #supported? ⇒ Boolean
- #teardown ⇒ Object
- #windows? ⇒ Boolean
Instance Method Details
#host ⇒ Object
9 10 11 12 |
# File 'lib/distil/browser.rb', line 9 def host require 'rbconfig' Config::CONFIG['host'] end |
#linux? ⇒ Boolean
22 23 24 |
# File 'lib/distil/browser.rb', line 22 def linux? host.include?('linux') end |
#macos? ⇒ Boolean
14 15 16 |
# File 'lib/distil/browser.rb', line 14 def macos? host.include?('darwin') end |
#open(url) ⇒ Object
6 |
# File 'lib/distil/browser.rb', line 6 def open(url) ; end |
#setup ⇒ Object
5 |
# File 'lib/distil/browser.rb', line 5 def setup ; end |
#supported? ⇒ Boolean
4 |
# File 'lib/distil/browser.rb', line 4 def supported?; true; end |
#teardown ⇒ Object
7 |
# File 'lib/distil/browser.rb', line 7 def teardown ; end |
#windows? ⇒ Boolean
18 19 20 |
# File 'lib/distil/browser.rb', line 18 def windows? host.include?('mswin') end |