
jruby.kernel.kernel.rb Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.jruby
Show all versions of org.apache.servicemix.bundles.jruby
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
The newest version!
module Kernel
module_function def exec(*args)
_exec_internal(*JRuby::ProcessUtil.exec_args(args))
end
# Replaces Java version for better caching
module_function def initialize_dup(original)
initialize_copy(original)
end
# Replaces Java version for better caching
module_function def initialize_clone(original, freeze: false)
initialize_copy(original)
end
def tap(&b)
# workaround for yield to lambda not triggering arity error
# see https://bugs.ruby-lang.org/issues/12705
(b && b.lambda?) ? b.call(self) : yield(self)
self
end
end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy