Class: Distil::Browser

Inherits:
Object
  • Object
show all
Defined in:
lib/distil/browser.rb

Instance Method Summary collapse

Instance Method Details

#hostObject



9
10
11
12
# File 'lib/distil/browser.rb', line 9

def host
  require 'rbconfig'
  Config::CONFIG['host']
end

#linux?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/distil/browser.rb', line 22

def linux?
  host.include?('linux')
end

#macos?Boolean

Returns:

  • (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

#setupObject



5
# File 'lib/distil/browser.rb', line 5

def setup ; end

#supported?Boolean

Returns:

  • (Boolean)


4
# File 'lib/distil/browser.rb', line 4

def supported?; true; end

#teardownObject



7
# File 'lib/distil/browser.rb', line 7

def teardown ; end

#windows?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/distil/browser.rb', line 18

def windows?
  host.include?('mswin')
end