Skip to content

Instantly share code, notes, and snippets.

@Maciek416
Created February 9, 2010 17:38
Show Gist options
  • Select an option

  • Save Maciek416/299446 to your computer and use it in GitHub Desktop.

Select an option

Save Maciek416/299446 to your computer and use it in GitHub Desktop.
module Java
class VM
def run(classname, options)
puts "original version"
end
end
end
Java::VM.new.run "blah", "blah"
Java::VM.module_eval do
def self.run(classname, options)
puts "new version"
end
end
Java::VM.new.run "blah", "blah"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment