Skip to content

Instantly share code, notes, and snippets.

@slagyr
Created October 20, 2009 16:01
Show Gist options
  • Save slagyr/214374 to your computer and use it in GitHub Desktop.
Save slagyr/214374 to your computer and use it in GitHub Desktop.
one.rb -------------------
Java::Main.thing = "thing1"
two.rb -------------------
thing = Java::Main.thing
puts "thing: #{thing}"
puts "thing.class: #{thing.class}"
case thing
when "thing1": puts "Got Thing 1"
else puts "nada"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment