Class: Para::Plugins::Set

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/para/plugins/set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSet

Returns a new instance of Set.



10
11
12
# File 'lib/para/plugins/set.rb', line 10

def initialize
  @items = []
end

Instance Attribute Details

#itemsObject

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_includesObject



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_includesObject



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