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
Returns a new instance of ObjectMethods.
13 14 15 16 17 |
# File 'lib/mmmm/object_methods.rb', line 13 def initialize obj file = nil flm_arr = file_line_method_arr(obj) @group_by_file = group_by_file(flm_arr) end |
Instance Method Details
#inspect ⇒ Object
19 20 21 22 23 |
# File 'lib/mmmm/object_methods.rb', line 19 def inspect @group_by_file. map {|file, flms| "#{file.cyan}\n#{lm_in_string(flms)}" }. join("\n") end |