Class: Molecule::AssetGroup
- Inherits:
-
Object
- Object
- Molecule::AssetGroup
- Defined in:
- lib/molecule/asset_group.rb
Instance Attribute Summary collapse
-
#file_paths ⇒ Object
Returns the value of attribute file_paths.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #add_file_path(file_path) ⇒ Object
-
#initialize(name, type) ⇒ AssetGroup
constructor
A new instance of AssetGroup.
Constructor Details
#initialize(name, type) ⇒ AssetGroup
7 8 9 10 11 |
# File 'lib/molecule/asset_group.rb', line 7 def initialize name, type @name = name @type = type @file_paths = [] end |
Instance Attribute Details
#file_paths ⇒ Object
Returns the value of attribute file_paths.
5 6 7 |
# File 'lib/molecule/asset_group.rb', line 5 def file_paths @file_paths end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/molecule/asset_group.rb', line 5 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/molecule/asset_group.rb', line 5 def type @type end |
Instance Method Details
#add_file_path(file_path) ⇒ Object
13 14 15 |
# File 'lib/molecule/asset_group.rb', line 13 def add_file_path file_path @file_paths << file_path end |