Top Level Namespace
Defined Under Namespace
Modules: Kernel, Krypt, OpenSSL
Instance Method Summary collapse
-
#java? ⇒ Boolean
If JRuby is configured with native API access disabled, requiring the FFI provider will result in a LoadError.
- #native_disabled? ⇒ Boolean
Instance Method Details
#java? ⇒ Boolean
If JRuby is configured with native API access disabled, requiring the FFI provider will result in a LoadError. The FFI provider is not required at runtime as there is always a default (Java-based) provider.
9 10 11 |
# File 'lib/krypt/provider.rb', line 9 def java? !! (RUBY_PLATFORM =~ /java/) end |
#native_disabled? ⇒ Boolean
13 14 15 16 |
# File 'lib/krypt/provider.rb', line 13 def native_disabled? require 'jruby' !JRuby.runtime.instance_config.native_enabled end |