Created
February 9, 2010 17:38
-
-
Save Maciek416/299446 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
| 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