Class: Gollum::Git::Ref
- Inherits:
-
Object
- Object
- Gollum::Git::Ref
- Defined in:
- lib/grit_adapter/git_layer_grit.rb
Instance Method Summary collapse
- #commit ⇒ Object
-
#initialize(ref) ⇒ Ref
constructor
A new instance of Ref.
- #name ⇒ Object
Constructor Details
#initialize(ref) ⇒ Ref
260 261 262 |
# File 'lib/grit_adapter/git_layer_grit.rb', line 260 def initialize(ref) @ref = ref end |
Instance Method Details
#commit ⇒ Object
268 269 270 |
# File 'lib/grit_adapter/git_layer_grit.rb', line 268 def commit Gollum::Git::Commit.new(@ref.commit) end |
#name ⇒ Object
264 265 266 |
# File 'lib/grit_adapter/git_layer_grit.rb', line 264 def name @ref.name end |