Class: Gollum::Git::Ref

Inherits:
Object
  • Object
show all
Defined in:
lib/grit_adapter/git_layer_grit.rb

Instance Method Summary collapse

Constructor Details

#initialize(ref) ⇒ Ref

Returns a new instance of Ref.


271
272
273
# File 'lib/grit_adapter/git_layer_grit.rb', line 271

def initialize(ref)
  @ref = ref
end

Instance Method Details

#commitObject


279
280
281
# File 'lib/grit_adapter/git_layer_grit.rb', line 279

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

#nameObject


275
276
277
# File 'lib/grit_adapter/git_layer_grit.rb', line 275

def name
  @ref.name
end