Method: ClassProfiler._get_methods_for
- Defined in:
- lib/class_profiler.rb
._get_methods_for(_caller, inherited = false) ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/class_profiler.rb', line 72 def self._get_methods_for(_caller, inherited = false) _caller.constantize if _caller.is_a? String #use const_get array = [] array.concat( _caller.instance_methods(inherited) ).concat( _caller.protected_instance_methods(inherited) ).concat( _caller.private_instance_methods(inherited) ) return array unless inherited return (array - IGNORED_METHODS).flatten.uniq end |