Class: Boxen::Project
- Inherits:
-
Object
- Object
- Boxen::Project
- Defined in:
- lib/boxen/project.rb
Overview
A project managed by Boxen.
Instance Attribute Summary collapse
-
#dir ⇒ Object
readonly
The directory where this project’s repo should live.
-
#name ⇒ Object
readonly
The name of this project.
Instance Method Summary collapse
-
#initialize(dir) ⇒ Project
constructor
A new instance of Project.
- #installed? ⇒ Boolean
Constructor Details
#initialize(dir) ⇒ Project
Returns a new instance of Project.
15 16 17 18 |
# File 'lib/boxen/project.rb', line 15 def initialize(dir) @dir = dir @name = File.basename @dir end |
Instance Attribute Details
#dir ⇒ Object (readonly)
The directory where this project’s repo should live.
9 10 11 |
# File 'lib/boxen/project.rb', line 9 def dir @dir end |
#name ⇒ Object (readonly)
The name of this project.
13 14 15 |
# File 'lib/boxen/project.rb', line 13 def name @name end |
Instance Method Details
#installed? ⇒ Boolean
20 21 22 |
# File 'lib/boxen/project.rb', line 20 def installed? File.directory? dir end |