Parent

Launchy::Detect::HostOs

Attributes

host_os[R]
to_s[R]

Public Class Methods

new( host_os = nil ) click to toggle source
# File lib/launchy/detect/host_os.rb, line 9
def initialize( host_os = nil )
  @host_os = host_os

  if not @host_os then
    if @host_os = override_host_os then
      Launchy.log "Using LAUNCHY_HOST_OS override value of '#{Launchy.host_os}'"
    else
      @host_os = default_host_os
    end
  end
end

Public Instance Methods

default_host_os() click to toggle source
# File lib/launchy/detect/host_os.rb, line 21
def default_host_os
  ::RbConfig::CONFIG['host_os']
end
override_host_os() click to toggle source
# File lib/launchy/detect/host_os.rb, line 25
def override_host_os
  Launchy.host_os
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.