module NIO
New I/O for Ruby
Constants
- ENGINE
- VERSION
Public Class Methods
engine()
click to toggle source
pure?(env = ENV)
click to toggle source
# File lib/nio.rb, line 15 def self.pure?(env = ENV) # The user has explicitly opted in to non-native implementation: if env["NIO4R_PURE"] == "true" return true end # Native Ruby on Windows is not supported: if (Gem.win_platform? && !defined?(JRUBY_VERSION)) return true end # M1 native extension is crashing on M1 (arm64): # if RUBY_PLATFORM =~ /darwin/ && RUBY_PLATFORM =~ /arm64/ # return true # end return false end