Module: ExtendObject

Defined in:
lib/rujitsu/inspect.rb

Instance Method Summary collapse

Instance Method Details

#grep_method(match) ⇒ Object

Matches your search string against all methods and returns array



19
20
21
22
# File 'lib/rujitsu/inspect.rb', line 19

def grep_method match
  match = /#{match}/ unless match.is_a? Regexp
  self.methods.grep(match)
end

#simple_methodsObject

Outputs all methods not inherited from Object



13
14
15
# File 'lib/rujitsu/inspect.rb', line 13

def simple_methods
  self.methods.sort - Object.methods
end