Class: Molecule::AssetGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/molecule/asset_group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pathsObject

Returns the value of attribute file_paths.



5
6
7
# File 'lib/molecule/asset_group.rb', line 5

def file_paths
  @file_paths
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/molecule/asset_group.rb', line 5

def name
  @name
end

#typeObject

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