Class: Gollum::Git::Ref

Inherits:
Object
  • Object
show all
Defined in:
lib/rjgit_adapter/git_layer_rjgit.rb

Instance Method Summary collapse

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

#commitObject



358
359
360
# File 'lib/rjgit_adapter/git_layer_rjgit.rb', line 358

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

#nameObject



354
355
356
# File 'lib/rjgit_adapter/git_layer_rjgit.rb', line 354

def name
  @name
end