Skip to content

Instantly share code, notes, and snippets.

@DerGuteMoritz
Created December 3, 2008 15:15
Show Gist options
  • Save DerGuteMoritz/31578 to your computer and use it in GitHub Desktop.
Save DerGuteMoritz/31578 to your computer and use it in GitHub Desktop.
puts "this is bar"
puts "this is foo"
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