Class: Gollum::Git::Ref
- Inherits:
-
Object
- Object
- Gollum::Git::Ref
- Defined in:
- lib/rugged_adapter/git_layer_rugged.rb
Instance Method Summary collapse
- #commit ⇒ Object
-
#initialize(ref) ⇒ Ref
constructor
A new instance of Ref.
- #name ⇒ Object
Constructor Details
#initialize(ref) ⇒ Ref
Returns a new instance of Ref.
550 551 552 |
# File 'lib/rugged_adapter/git_layer_rugged.rb', line 550 def initialize(ref) @ref = ref end |
Instance Method Details
#commit ⇒ Object
558 559 560 |
# File 'lib/rugged_adapter/git_layer_rugged.rb', line 558 def commit Gollum::Git::Commit.new(@ref.target) end |
#name ⇒ Object
554 555 556 |
# File 'lib/rugged_adapter/git_layer_rugged.rb', line 554 def name @ref.name end |