Class: Object

Inherits:
BasicObject
Defined in:
lib/interesting_methods.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.interesting_methodsObject



15
16
17
# File 'lib/interesting_methods.rb', line 15

def self.interesting_methods
  (public_methods - Object.methods).sort
end

Instance Method Details

#imObject



3
4
5
# File 'lib/interesting_methods.rb', line 3

def im
  interesting_methods
end

#interesting_methodsObject



7
8
9
10
11
12
13
# File 'lib/interesting_methods.rb', line 7

def interesting_methods
  if self.class == Module
    (singleton_methods + instance_methods).uniq.sort
  else
    (public_methods - Object.methods).sort
  end
end