lib/appmap/config.rb
# Loads configuration from a Hash.
Loads configuration from a Hash.
Loads configuration from a Hash .
def load(config_data)
        packages = (config_data['packages'] || []).map do |package|
          Package.new(package['path'], exclude: package['exclude'] || [])
        end
        Config.new config_data['name'], packages
      end
def load ( config_data ) packages = ( config_data [ 'packages' ] || [ ] ) . map do | package | Package . new ( package [ 'path' ] , exclude : package [ 'exclude' ] || [ ] ) end Config . new config_data [ 'name' ] , packages end
Loads configuration from a Hash.
Loads configuration from a Hash .
config_data
<not_specific>