Class: Mmmm::ObjectMethods
- Inherits:
-
Object
- Object
- Mmmm::ObjectMethods
- Defined in:
- lib/mmmm/object_methods.rb
Defined Under Namespace
Classes: FileLineMethod
Instance Method Summary collapse
-
#initialize(obj) ⇒ ObjectMethods
constructor
A new instance of ObjectMethods.
- #inspect ⇒ Object
Constructor Details
#initialize(obj) ⇒ ObjectMethods
18 19 20 |
# File 'lib/mmmm/object_methods.rb', line 18 def initialize obj @obj = obj end |
Instance Method Details
#inspect ⇒ Object
22 23 24 25 26 |
# File 'lib/mmmm/object_methods.rb', line 22 def inspect group_by_inherited_and_file. map { |inh_file, flms| "#{inh_file[1].cyan} #{inh_file[0]}\n#{lm_in_string(flms)}" }. join("\n") end |