Class: Para::Plugins::Set
- Inherits:
-
Object
- Object
- Para::Plugins::Set
- Includes:
- Enumerable
- Defined in:
- lib/para/plugins/set.rb
Instance Attribute Summary collapse
-
#items ⇒ Object
Returns the value of attribute items.
Instance Method Summary collapse
-
#initialize ⇒ Set
constructor
A new instance of Set.
- #javascript_includes ⇒ Object
- #stylesheet_includes ⇒ Object
Constructor Details
#initialize ⇒ Set
Returns a new instance of Set.
10 11 12 |
# File 'lib/para/plugins/set.rb', line 10 def initialize @items = [] end |
Instance Attribute Details
#items ⇒ Object
Returns the value of attribute items.
6 7 8 |
# File 'lib/para/plugins/set.rb', line 6 def items @items end |
Instance Method Details
#javascript_includes ⇒ Object
14 15 16 17 18 |
# File 'lib/para/plugins/set.rb', line 14 def javascript_includes each_with_object([]) do |plugin, collection| collection.concat(includes_for(:javascript, plugin)) end end |
#stylesheet_includes ⇒ Object
20 21 22 23 24 |
# File 'lib/para/plugins/set.rb', line 20 def stylesheet_includes each_with_object([]) do |plugin, collection| collection.concat(includes_for(:stylesheet, plugin)) end end |