Skip to content

Instantly share code, notes, and snippets.

@nathanbertram
Created January 6, 2011 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanbertram/767402 to your computer and use it in GitHub Desktop.
Save nathanbertram/767402 to your computer and use it in GitHub Desktop.
neat
def method_a
puts "AA"
def method_b
puts "BB"
end
end
# ree-1.8.7-2010.02 > method_a
# AA
# => nil
# ree-1.8.7-2010.02 > method_a.send(:method_b)
# AA
# BB
# => nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment