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.



543
544
545
# File 'lib/rugged_adapter/git_layer_rugged.rb', line 543

def initialize(ref)
  @ref = ref
end

Instance Method Details

#commitObject



551
552
553
# File 'lib/rugged_adapter/git_layer_rugged.rb', line 551

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

#nameObject



547
548
549
# File 'lib/rugged_adapter/git_layer_rugged.rb', line 547

def name
  @ref.name
end