Module: Ritsu::Utility

Included in:
ProjectGenerators::DefaultGenerator, SrcFile
Defined in:
lib/ritsu/utility/files.rb,
lib/ritsu/utility/strings.rb,
lib/ritsu/utility/platform.rb,
lib/ritsu/utility/accessors.rb,
lib/ritsu/utility/simple_io.rb,
lib/ritsu/utility/file_robot.rb,
lib/ritsu/utility/instance_set.rb,
lib/ritsu/utility/single_instance.rb,
lib/ritsu/utility/check_upon_add_set.rb,
lib/ritsu/utility/instance_dependencies.rb

Defined Under Namespace

Modules: Accessors, Files, InstanceDependencies, InstanceSet, SingleInstance, Strings Classes: CheckUponAddSet, FileRobot, SimpleIO

Class Method Summary collapse

Class Method Details

.platformObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/ritsu/utility/platform.rb', line 3

def platform
  case RUBY_PLATFORM.downcase
  when /linux|bsd|solaris|hpux/
    :unix
  when /darwin/
    :mac
  when /mswin32|mingw32|bccwin32/
    :windows
  when /cygwin/
    :cygwin
  when /java/
    :java
  else
    :other
  end
end