Class: AppMap::ClassMap
- Inherits:
-
Object
- Object
- AppMap::ClassMap
- Defined in:
- lib/appmap/class_map.rb
Defined Under Namespace
Modules: HasChildren, Types
Class Method Summary collapse
Class Method Details
.build_from_methods(config, methods) ⇒ Object
70 71 72 73 74 75 76 77 78 |
# File 'lib/appmap/class_map.rb', line 70 def build_from_methods(config, methods) root = Types::Root.new methods.each do |method| package = config.package_for_method(method) \ or raise "No package found for method #{method}" add_function root, package, method end root.children.map(&:to_h) end |