Class: PushType::Admin::Assets
- Inherits:
-
Object
- Object
- PushType::Admin::Assets
- Defined in:
- lib/push_type/admin/assets.rb
Instance Attribute Summary collapse
-
#javascripts ⇒ Object
Returns the value of attribute javascripts.
-
#stylesheets ⇒ Object
Returns the value of attribute stylesheets.
Instance Method Summary collapse
-
#initialize ⇒ Assets
constructor
A new instance of Assets.
- #register(lib) ⇒ Object
Constructor Details
#initialize ⇒ Assets
Returns a new instance of Assets.
7 8 9 10 |
# File 'lib/push_type/admin/assets.rb', line 7 def initialize @javascripts = [] @stylesheets = [] end |
Instance Attribute Details
#javascripts ⇒ Object
Returns the value of attribute javascripts.
5 6 7 |
# File 'lib/push_type/admin/assets.rb', line 5 def javascripts @javascripts end |
#stylesheets ⇒ Object
Returns the value of attribute stylesheets.
5 6 7 |
# File 'lib/push_type/admin/assets.rb', line 5 def stylesheets @stylesheets end |
Instance Method Details
#register(lib) ⇒ Object
12 13 14 15 |
# File 'lib/push_type/admin/assets.rb', line 12 def register(lib) @javascripts << lib @stylesheets << lib end |