Class: RubyGit::Repository
- Inherits:
-
Object
- Object
- RubyGit::Repository
- Defined in:
- lib/ruby_git/repository.rb
Overview
The repository is the database of all the objects, refs, and other data that make up the history of a project.
Instance Attribute Summary collapse
-
#path ⇒ String
readonly
The absolute path to the repository.
Instance Method Summary collapse
-
#initialize(repository_path) ⇒ Repository
constructor
Create a new Repository object with the given repository path.
Constructor Details
#initialize(repository_path) ⇒ Repository
Create a new Repository object with the given repository path
35 36 37 |
# File 'lib/ruby_git/repository.rb', line 35 def initialize(repository_path) @path = normalize_path(repository_path) end |
Instance Attribute Details
#path ⇒ String (readonly)
The absolute path to the repository
20 21 22 |
# File 'lib/ruby_git/repository.rb', line 20 def path @path end |