Class: BunBunBundle::Config::EntryPoints

Inherits:
Object
  • Object
show all
Defined in:
lib/bun_bun_bundle/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ EntryPoints

Returns a new instance of EntryPoints.



30
31
32
33
# File 'lib/bun_bun_bundle/config.rb', line 30

def initialize(data = {})
  @js = Array(data.fetch('js', %w[app/assets/js/app.js]))
  @css = Array(data.fetch('css', %w[app/assets/css/app.css]))
end

Instance Attribute Details

#cssObject (readonly)

Returns the value of attribute css.



28
29
30
# File 'lib/bun_bun_bundle/config.rb', line 28

def css
  @css
end

#jsObject (readonly)

Returns the value of attribute js.



28
29
30
# File 'lib/bun_bun_bundle/config.rb', line 28

def js
  @js
end