Class: Gollum::Git::Ref
- Inherits:
-
Object
- Object
- Gollum::Git::Ref
- Defined in:
- lib/rjgit_adapter/git_layer_rjgit.rb
Instance Method Summary collapse
- #commit ⇒ Object
-
#initialize(commit, name) ⇒ Ref
constructor
A new instance of Ref.
- #name ⇒ Object
Constructor Details
#initialize(commit, name) ⇒ Ref
Returns a new instance of Ref.
350 351 352 |
# File 'lib/rjgit_adapter/git_layer_rjgit.rb', line 350 def initialize(commit, name) @commit, @name = commit, name end |
Instance Method Details
#commit ⇒ Object
358 359 360 |
# File 'lib/rjgit_adapter/git_layer_rjgit.rb', line 358 def commit Gollum::Git::Commit.new(@commit) end |
#name ⇒ Object
354 355 356 |
# File 'lib/rjgit_adapter/git_layer_rjgit.rb', line 354 def name @name end |