Sha256: 7856fd511db119c32a7d51eb535b01fa17e433051d5d2497c1a437fd2616fc9e

Contents?: true

Size: 324 Bytes

Versions: 4

Compression:

Stored size: 324 Bytes

Contents

# Set the OS and platform

case RUBY_PLATFORM
when /darwin/
  $RUBY2D_PLATFORM = :macos
when /linux/
  $RUBY2D_PLATFORM = :linux
  if `cat /etc/os-release` =~ /raspbian/
    $RUBY2D_PLATFORM = :linux_rpi
  end
when /bsd/
  $RUBY2D_PLATFORM = :bsd
when /mingw/
  $RUBY2D_PLATFORM = :windows
else
  $RUBY2D_PLATFORM = nil
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby2d-0.12.1 lib/ruby2d/cli/platform.rb
ruby2d-0.12.0 lib/ruby2d/cli/platform.rb
ruby2d-0.11.3 lib/ruby2d/cli/platform.rb
ruby2d-0.11.2 lib/ruby2d/cli/platform.rb