Class: MultiGit::GitBackend::Ref
- Inherits:
-
Object
- Object
- MultiGit::GitBackend::Ref
- Includes:
- Ref
- Defined in:
- lib/multi_git/git_backend/ref.rb
Instance Attribute Summary collapse
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Attributes included from Ref
Instance Method Summary collapse
-
#initialize(repository, name) ⇒ Ref
constructor
A new instance of Ref.
Methods included from Ref
#[], #commit, #delete, #detached?, #direct?, #exists?, #reload, #resolve, #symbolic?, #update
Methods included from Utils::AbstractMethods
Constructor Details
#initialize(repository, name) ⇒ Ref
Returns a new instance of Ref.
11 12 13 14 |
# File 'lib/multi_git/git_backend/ref.rb', line 11 def initialize(repository, name) super(repository, name) read! end |
Instance Attribute Details
#target ⇒ Object (readonly)
Returns the value of attribute target.
9 10 11 |
# File 'lib/multi_git/git_backend/ref.rb', line 9 def target @target end |