instance method for_each_import

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3 Private

Signature

for_each_import(packages, **options, &block)

No documentation comment.

Parameters

packages req
options keyrest
block block
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close