Class: Gitenv::Repository
- Inherits:
-
Object
- Object
- Gitenv::Repository
- Defined in:
- lib/gitenv/repository.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(path) ⇒ Repository
constructor
A new instance of Repository.
Constructor Details
#initialize(path) ⇒ Repository
Returns a new instance of Repository.
5 6 7 |
# File 'lib/gitenv/repository.rb', line 5 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/gitenv/repository.rb', line 3 def path @path end |
Instance Method Details
#==(other) ⇒ Object
9 10 11 |
# File 'lib/gitenv/repository.rb', line 9 def ==(other) other.path == path end |