Class: PushType::Admin::Assets

Inherits:
Object
  • Object
show all
Defined in:
lib/push_type/admin/assets.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAssets

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

#javascriptsObject

Returns the value of attribute javascripts.



5
6
7
# File 'lib/push_type/admin/assets.rb', line 5

def javascripts
  @javascripts
end

#stylesheetsObject

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