Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 16th, 2012  |  syntax: None  |  size: 0.20 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. class MethodMissingTest
  2.   def method_missing(method_name, *args, &block)
  3.     puts 'Method Called: ' + method_name.to_s
  4.     puts 'Arguments: ' + args.to_s
  5.     puts 'Block Given: ' + block_given?.to_s
  6.   end
  7. end