Class: Mmmm::ObjectMethods

Inherits:
Object
  • Object
show all
Defined in:
lib/mmmm/object_methods.rb

Defined Under Namespace

Classes: FileLineMethod

Instance Method Summary collapse

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

#inspectObject



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