Method: ClassProfiler.for
- Defined in:
- lib/class_profiler.rb
.for(options = {}) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/class_profiler.rb', line 29 def self.for( = {}) methods = [:instance_methods] || [] _caller = CONSTANTIZE.call(caller_locations(1,1)[0].label) if [:modules] methods.concat( [:modules].map{|m| _get_methods_for(m) } ) end @__cp_instance_methods = methods.flatten.uniq return self end |