Sha256: 5027423de942e519576ca4f5ba6e7fa27b6bb8714c0853129ac9a18aeae72e58
Contents?: true
Size: 706 Bytes
Versions: 20
Compression:
Stored size: 706 Bytes
Contents
module RestClient module Platform # Return true if we are running on a darwin-based Ruby platform. This will # be false for jruby even on OS X. # # @return [Boolean] def self.mac? RUBY_PLATFORM.include?('darwin') end # Return true if we are running on Windows. # # @return [Boolean] # def self.windows? # Ruby only sets File::ALT_SEPARATOR on Windows, and the Ruby standard # library uses that to test what platform it's on. !!File::ALT_SEPARATOR end # Return true if we are running on jruby. # # @return [Boolean] # def self.jruby? # defined on mri >= 1.9 RUBY_ENGINE == 'jruby' end end end
Version data entries
20 entries across 20 versions & 1 rubygems