instance method cache

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18 Private

Available in: v2.2.3 v2.3.18

Signature

cache()

Lookup and cache every generator from the source list.

Source
# File railties/lib/rails_generator/lookup.rb, line 145
          def cache
            @cache ||= sources.inject([]) { |cache, source| cache + source.to_a }
          end

Defined in railties/lib/rails_generator/lookup.rb line 145 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Generator::Lookup::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close