Sha256: 407314edab998ef24fa6c0e6bfefc434c1aa608eb305b892e06bb08236e288a9

Contents?: true

Size: 256 Bytes

Versions: 22

Compression:

Stored size: 256 Bytes

Contents

module OS
  def OS.windows?
    (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
  end

  def OS.mac?
   (/darwin/ =~ RUBY_PLATFORM) != nil
  end

  def OS.unix?
    !OS.windows?
  end

  def OS.linux?
    OS.unix? and not OS.mac?
  end
end

Version data entries

22 entries across 22 versions & 5 rubygems

Version Path
waff-0.0.7 lib/waff/os.rb
fiddlesticks-0.2.0 lib/fiddlesticks/os.rb
fiddlesticks-0.1.0 lib/fiddlesticks/os.rb
somadic-0.0.4 bin/curses/lib/os.rb
somadic-0.0.3 bin/curses/lib/os.rb
arpm-0.9.0 lib/arpm/os.rb
railsthemes-2.1.3 lib/railsthemes/os.rb
railsthemes-2.1.2 lib/railsthemes/os.rb
railsthemes-2.1.1 lib/railsthemes/os.rb
railsthemes-2.1.0 lib/railsthemes/os.rb
railsthemes-2.0.3 lib/railsthemes/os.rb
railsthemes-2.0.2 lib/railsthemes/os.rb
railsthemes-2.0.1 lib/railsthemes/os.rb
railsthemes-2.0.0 lib/railsthemes/os.rb
railsthemes-2.0.0.pre.2 lib/railsthemes/os.rb
railsthemes-2.0.0.pre lib/railsthemes/os.rb
railsthemes-1.2.0 lib/railsthemes/os.rb
railsthemes-1.1.2 lib/railsthemes/os.rb
railsthemes-1.1.1 lib/railsthemes/os.rb
railsthemes-1.1 lib/railsthemes/os.rb