Module: ExtendObject
- Defined in:
- lib/rujitsu/inspect.rb
Instance Method Summary collapse
-
#grep_method(match) ⇒ Object
Matches your search string against all methods and returns array.
-
#simple_methods ⇒ Object
Outputs all methods not inherited from Object.
Instance Method Details
#grep_method(match) ⇒ Object
Matches your search string against all methods and returns array
21 22 23 24 |
# File 'lib/rujitsu/inspect.rb', line 21 def grep_method match match = /#{match}/ unless match.is_a? Regexp self.methods.grep(match) end |
#simple_methods ⇒ Object
Outputs all methods not inherited from Object
15 16 17 |
# File 'lib/rujitsu/inspect.rb', line 15 def simple_methods self.methods.sort - Object.methods end |