Class: Project
- Inherits:
-
Object
- Object
- Project
- Defined in:
- lib/project.rb
Instance Attribute Summary collapse
-
#config_files ⇒ Object
readonly
Returns the value of attribute config_files.
-
#name ⇒ Object
Returns the value of attribute name.
-
#targets ⇒ Object
readonly
Returns the value of attribute targets.
Instance Method Summary collapse
- #file_name ⇒ Object
-
#initialize(name) {|_self| ... } ⇒ Project
constructor
A new instance of Project.
- #target(name, &block) ⇒ Object
Constructor Details
#initialize(name) {|_self| ... } ⇒ Project
Returns a new instance of Project.
23 24 25 26 27 28 29 30 31 |
# File 'lib/project.rb', line 23 def initialize(name) @name = name @targets = [] @config_files = {} yield self end |
Instance Attribute Details
#config_files ⇒ Object (readonly)
Returns the value of attribute config_files.
19 20 21 |
# File 'lib/project.rb', line 19 def config_files @config_files end |
#name ⇒ Object
Returns the value of attribute name.
21 22 23 |
# File 'lib/project.rb', line 21 def name @name end |
#targets ⇒ Object (readonly)
Returns the value of attribute targets.
20 21 22 |
# File 'lib/project.rb', line 20 def targets @targets end |