Sha256: 480b11e8b09b3f98d96a3e5a6e5ccfcf4f454b0213bc634bc9be5308276de068

Contents?: true

Size: 254 Bytes

Versions: 21

Compression:

Stored size: 254 Bytes

Contents

# Helper functions for determining platform

class Platform
	def self.mac?
	  return RUBY_PLATFORM =~ /darwin/
	end
	
	def self.windows?
	  return RUBY_PLATFORM =~ /mswin/
	end
	
	def self.linux?
		return RUBY_PLATFORM =~ /linux/
	end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
gamebox-0.5.5 lib/gamebox/lib/platform.rb
gamebox-0.5.4 lib/gamebox/lib/platform.rb
gamebox-0.5.2 lib/gamebox/lib/platform.rb
gamebox-0.5.1 lib/gamebox/lib/platform.rb
gamebox-0.5.0 lib/gamebox/lib/platform.rb
gamebox-0.4.1 lib/gamebox/lib/platform.rb
gamebox-0.4.0 lib/gamebox/lib/platform.rb
gamebox-0.4.0.rc11 lib/gamebox/lib/platform.rb
gamebox-0.4.0.rc5 lib/gamebox/lib/platform.rb
gamebox-0.4.0.rc4 lib/gamebox/lib/platform.rb
gamebox-0.4.0.rc3 lib/gamebox/lib/platform.rb
gamebox-0.4.0.rc2 lib/gamebox/lib/platform.rb
gamebox-0.4.0.rc1 lib/gamebox/lib/platform.rb
gamebox-0.3.4 lib/gamebox/lib/platform.rb
gamebox-0.3.3 lib/gamebox/lib/platform.rb
gamebox-0.3.2 lib/gamebox/lib/platform.rb
gamebox-0.2.1 lib/gamebox/lib/platform.rb
gamebox-0.1.1 lib/gamebox/lib/platform.rb
gamebox-0.1.0 lib/gamebox/lib/platform.rb
gamebox-0.0.9 lib/gamebox/lib/platform.rb