instance method
extract_existing_pin_options
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
extract_existing_pin_options(packages)
No documentation comment.
Parameters
-
packagesreq
Source
# File lib/importmap/packager.rb, line 71
def extract_existing_pin_options(packages)
return {} unless @importmap_path.exist?
packages = Array(packages)
all_package_options = build_package_options_lookup(importmap.lines)
packages.to_h do |package|
[package, all_package_options[package] || {}]
end
end
Defined in lib/importmap/packager.rb line 71
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Importmap::Packager