Class: Git::Object::Tag

Inherits:
AbstractObject show all
Defined in:
lib/git/object.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractObject

#mode, #objectish, #size, #type

Instance Method Summary collapse

Methods inherited from AbstractObject

#archive, #blob?, #commit?, #contents, #contents_array, #diff, #grep, #log, #sha, #to_s, #tree?

Constructor Details

#initialize(base, sha, name) ⇒ Tag

Returns a new instance of Tag.



244
245
246
247
# File 'lib/git/object.rb', line 244

def initialize(base, sha, name)
  super(base, sha)
  @name = name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



242
243
244
# File 'lib/git/object.rb', line 242

def name
  @name
end

Instance Method Details

#tag?Boolean

Returns:

  • (Boolean)


249
250
251
# File 'lib/git/object.rb', line 249

def tag?
  true
end