Class: PointRb::Project
- Inherits:
-
Object
- Object
- PointRb::Project
- Defined in:
- lib/pointrb/project.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(name) ⇒ Project
constructor
A new instance of Project.
Constructor Details
#initialize(name) ⇒ Project
Returns a new instance of Project.
6 7 8 9 |
# File 'lib/pointrb/project.rb', line 6 def initialize(name) @name = name @path = File.join(Dir.pwd, name) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/pointrb/project.rb', line 4 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/pointrb/project.rb', line 4 def path @path end |