Module: ObjectLabel
- Included in:
- Object
- Defined in:
- lib/class_profiler/object_label.rb
Instance Method Summary collapse
Instance Method Details
#label(method_name, notes = nil) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/class_profiler/object_label.rb', line 2 def label(method_name, notes = nil) if notes "#{self.class.name}##{method_name} (#{notes})" else "#{self.class.name}##{method_name}" end end |