Class: Gollum::Git::Ref

Inherits:
Object
  • Object
show all
Defined in:
lib/rugged_adapter/git_layer_rugged.rb

Instance Method Summary collapse

Constructor Details

#initialize(ref) ⇒ Ref

Returns a new instance of Ref.



525
526
527
# File 'lib/rugged_adapter/git_layer_rugged.rb', line 525

def initialize(ref)
  @ref = ref
end

Instance Method Details

#commitObject



533
534
535
# File 'lib/rugged_adapter/git_layer_rugged.rb', line 533

def commit
  Gollum::Git::Commit.new(@ref.target)
end

#nameObject



529
530
531
# File 'lib/rugged_adapter/git_layer_rugged.rb', line 529

def name
  @ref.name
end