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

Improvements from Nikolas Coukouma

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:

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

#cloneObject



31
32
33
34
35
# File 'lib/what_methods.rb', line 31

def clone
  __clone__
rescue TypeError
  self
end

#what?(*a) ⇒ Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/what_methods.rb', line 27

def what?(*a)
  WhatMethods::MethodFinder.show(self, *a)
end