Sha256: a4a04b023264e93b9307a2132c79f38141c6eeb168fb6978817ebd1e3a99a85f

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true

module Puma
  IS_JRUBY = defined?(JRUBY_VERSION)

  def self.jruby?
    IS_JRUBY
  end

  IS_WINDOWS = RUBY_PLATFORM =~ /mswin|ming|cygwin/

  def self.windows?
    IS_WINDOWS
  end

  def self.mri?
    RUBY_ENGINE == 'ruby' || RUBY_ENGINE.nil?
  end

  def self.forkable?
    ::Process.respond_to?(:fork)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puma-5.0.0.beta2-java lib/puma/detect.rb
puma-5.0.0.beta2 lib/puma/detect.rb
puma-5.0.0.beta1-java lib/puma/detect.rb
puma-5.0.0.beta1 lib/puma/detect.rb