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
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 |