Top Level Namespace

Instance Method Summary collapse

Instance Method Details

#osObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/listener.rb', line 6

def os
  @os ||= (
    host_os = RbConfig::CONFIG['host_os']
    case host_os
    # TODO: Windows support
    # when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
    #   :win
    when /darwin|mac os/
      :osx
    else
      :linux
    end
  )
end