Created
December 3, 2008 15:15
-
-
Save DerGuteMoritz/31578 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "this is bar" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "this is foo" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd foo | |
jrubyc baz.rb | |
cd ../bar | |
jrubyc baz.rb | |
jruby -e 'load "/absolute/path/to/foo/baz.class"' | |
# this is bar | |
jruby -e 'load "../foo/baz.class"' | |
# -e:1:in `load': No such file to load -- ../foo/baz.class (LoadError) | |
jruby -e 'require "../foo/baz"' | |
# this is bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment