Method: AppMap::ClassMap.build_from_methods

Defined in:
lib/appmap/class_map.rb

.build_from_methods(methods, options = {}) ⇒ Object



74
75
76
77
78
79
80
# File 'lib/appmap/class_map.rb', line 74

def build_from_methods(methods, options = {})
  root = Types::Root.new
  methods.each do |method|
    add_function root, method, options
  end
  root.children.map(&:to_h)
end