Class: Hulk::Assets
- Inherits:
-
Object
- Object
- Hulk::Assets
- Defined in:
- lib/hulk/assets.rb
Instance Attribute Summary collapse
-
#css ⇒ Object
Returns the value of attribute css.
-
#js ⇒ Object
Returns the value of attribute js.
Instance Method Summary collapse
- #compile! ⇒ Object
-
#initialize ⇒ Assets
constructor
A new instance of Assets.
Constructor Details
#initialize ⇒ Assets
Returns a new instance of Assets.
7 8 9 10 |
# File 'lib/hulk/assets.rb', line 7 def initialize @css = Hulk::BundleCollection.new(:css) @js = Hulk::BundleCollection.new(:js) end |
Instance Attribute Details
#css ⇒ Object
Returns the value of attribute css.
5 6 7 |
# File 'lib/hulk/assets.rb', line 5 def css @css end |
#js ⇒ Object
Returns the value of attribute js.
5 6 7 |
# File 'lib/hulk/assets.rb', line 5 def js @js end |
Instance Method Details
#compile! ⇒ Object
12 13 14 15 |
# File 'lib/hulk/assets.rb', line 12 def compile! @css.compile! @js.compile! end |