instance method
for_each_import
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3 PrivateSignature
for_each_import(packages, **options, &block)
No documentation comment.
Parameters
-
packagesreq -
optionskeyrest -
blockblock
Source
# File lib/importmap/commands.rb, line 179
def for_each_import(packages, **options, &block)
response = packager.import(*packages, **options)
if response
response[:imports].each(&block)
else
handle_package_not_found(packages, options[:from])
end
end
Defined in lib/importmap/commands.rb line 179
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Importmap::Commands