Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/what_methods.rb
Overview
Some credits: Code this verions is based on: Andrew Birkett
http://www.nobugs.org/developer/ruby/method_finder.html
Improvements from Why’s blog entry
-
what? == - Why
-
@@blacklist - llasram
-
clone alias - Daniel Schierbeck
-
$stdout redirect - Why redhanded.hobix.com/inspect/stickItInYourIrbrcMethodfinder.html
Improvements from Nikolas Coukouma
-
Varargs and block support
-
Improved catching
-
Redirecting $stdout and $stderr (independently of Why) atrustheotaku.livejournal.com/339449.html
A version posted in 2002 by Steven Grady:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/32844
David Tran’s versions:
-
Checks permutations of arguments www.doublegifts.com/pub/ruby/methodfinder2.rb.html
Last updated: 2006/05/20
Instance Method Summary collapse
Instance Method Details
#__clone__ ⇒ Object
30 |
# File 'lib/what_methods.rb', line 30 alias_method :__clone__, :clone |
#clone ⇒ Object
31 32 33 34 35 |
# File 'lib/what_methods.rb', line 31 def clone __clone__ rescue TypeError self end |
#what?(*a) ⇒ Boolean
27 28 29 |
# File 'lib/what_methods.rb', line 27 def what?(*a) WhatMethods::MethodFinder.show(self, *a) end |