Class: BunBunBundle::Config::EntryPoints
- Inherits:
-
Object
- Object
- BunBunBundle::Config::EntryPoints
- Defined in:
- lib/bun_bun_bundle/config.rb
Instance Attribute Summary collapse
-
#css ⇒ Object
readonly
Returns the value of attribute css.
-
#js ⇒ Object
readonly
Returns the value of attribute js.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ EntryPoints
constructor
A new instance of EntryPoints.
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
#css ⇒ Object (readonly)
Returns the value of attribute css.
28 29 30 |
# File 'lib/bun_bun_bundle/config.rb', line 28 def css @css end |
#js ⇒ Object (readonly)
Returns the value of attribute js.
28 29 30 |
# File 'lib/bun_bun_bundle/config.rb', line 28 def js @js end |