Created
March 4, 2014 10:04
-
-
Save kentaro/9343602 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
#!/usr/bin/env ruby -w | |
def foo | |
puts "foo" | |
end | |
def foo | |
puts "redefined" | |
end | |
foo | |
__END__ | |
/Users/antipop/tmp/foo.rb:7: warning: method redefined; discarding old foo | |
/Users/antipop/tmp/foo.rb:3: warning: previous definition of foo was here | |
redefined | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment