Sha256: 717a797e1dd980a4e5bd702a164355f28d40935e047bf8ebb70ce7bae2201aab

Contents?: true

Size: 274 Bytes

Versions: 5

Compression:

Stored size: 274 Bytes

Contents

# frozen_string_literal: true

module Capybara
  module Poltergeist
    class << self
      def windows?
        RbConfig::CONFIG["host_os"] =~ /mingw|mswin|cygwin/
      end

      def mri?
        defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby"
      end
    end
  end
end

Version data entries

5 entries across 4 versions & 2 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/poltergeist-1.18.1/lib/capybara/poltergeist/utility.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/poltergeist-1.18.1/lib/capybara/poltergeist/utility.rb
poltergeist-1.18.1 lib/capybara/poltergeist/utility.rb
poltergeist-1.18.0 lib/capybara/poltergeist/utility.rb
poltergeist-1.17.0 lib/capybara/poltergeist/utility.rb