Created
June 26, 2012 23:11
-
-
Save davidbalbert/3000005 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
#!/bin/sh | |
make clean | |
make distclean | |
rm -rf ./build | |
set -e | |
autoconf || exit 125 | |
(./configure --prefix=`pwd`/build/ && make && make install) || exit 125 | |
build/bin/ruby /tmp/inner_method_test.rb |
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
def foo | |
def bar | |
end | |
end | |
foo | |
if Object.instance_methods(false).include?(:bar) | |
puts "BAD. :bar is public" | |
exit(1) | |
end | |
puts "GOOD. :bar is private" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment