Skip to content

Instantly share code, notes, and snippets.

@gnarmis
Created June 1, 2011 20:07
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 gnarmis/1003189 to your computer and use it in GitHub Desktop.
Save gnarmis/1003189 to your computer and use it in GitHub Desktop.
ruby-1.9.2-p180 :001 > cat = Object.new
=> #<Object:0x0000010085bc58>
ruby-1.9.2-p180 :002 > puts cat.methods.sort
!
!=
!~
<=>
==
===
=~
__id__
__send__
class
clone
define_singleton_method
display
dup
enum_for
eql?
equal?
extend
freeze
frozen?
hash
initialize_clone
initialize_dup
inspect
instance_eval
instance_exec
instance_of?
instance_variable_defined?
instance_variable_get
instance_variable_set
instance_variables
is_a?
kind_of?
method
methods
nil?
object_id
private_methods
protected_methods
public_method
public_methods
public_send
respond_to?
respond_to_missing?
send
singleton_class
singleton_methods
taint
tainted?
tap
to_enum
to_s
trust
untaint
untrust
untrusted?
=> nil
ruby-1.9.2-p180 :003 > cat.kind_of? Object
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment