Class: SewingKit::Webpack::Manifest::Production
- Defined in:
- lib/sewing_kit/webpack/manifest/production.rb
Instance Method Summary collapse
- #asset_bundle_name(user_agent) ⇒ Object
-
#asset_dependencies(entrypoint_name, user_agent) ⇒ Object
:nodoc:.
-
#initialize ⇒ Production
constructor
A new instance of Production.
- #metadata ⇒ Object
Methods inherited from Base
Constructor Details
#initialize ⇒ Production
Returns a new instance of Production.
10 11 12 13 14 |
# File 'lib/sewing_kit/webpack/manifest/production.rb', line 10 def initialize @cache_by_user_agent = {} @metadata = nil @metadata_path = nil end |
Instance Method Details
#asset_bundle_name(user_agent) ⇒ Object
16 17 18 |
# File 'lib/sewing_kit/webpack/manifest/production.rb', line 16 def asset_bundle_name(user_agent) (user_agent)['name'] end |
#asset_dependencies(entrypoint_name, user_agent) ⇒ Object
:nodoc:
21 22 23 |
# File 'lib/sewing_kit/webpack/manifest/production.rb', line 21 def asset_dependencies(entrypoint_name, user_agent) (user_agent)['entrypoints'][entrypoint_name] end |
#metadata ⇒ Object
25 26 27 |
# File 'lib/sewing_kit/webpack/manifest/production.rb', line 25 def @metadata ||= end |