You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
banshee edited this page Sep 21, 2011
·
12 revisions
require 'path/to/file.jar'
require can take a path to a jar file. It searches the JRuby $LOAD_PATH for the file.
require 'java'
A special `require 'java'` directive in your file will give you access to any bundled Java libraries (classes within your java class path). However, this will not give you access to any non-bundled libraries.
#each
JRuby supports calling the `#each` method on Enumerable objects