Class: Git::Object::Tag
Instance Attribute Summary collapse
#mode, #objectish, #size, #type
Instance Method Summary
collapse
#archive, #blob?, #commit?, #contents, #contents_array, #diff, #grep, #log, #sha, #to_s, #tree?
Constructor Details
#initialize(base, sha, name) ⇒ Tag
247
248
249
250
251
252
|
# File 'lib/git/object.rb', line 247
def initialize(base, sha, name)
super(base, sha)
@name = name
@annotated = nil
@loaded = false
end
|
Instance Attribute Details
Returns the value of attribute name.
245
246
247
|
# File 'lib/git/object.rb', line 245
def name
@name
end
|
Instance Method Details
#annotated? ⇒ Boolean
254
255
256
|
# File 'lib/git/object.rb', line 254
def annotated?
@annotated ||= (@base.lib.object_type(self.name) == 'tag')
end
|
258
259
260
261
|
# File 'lib/git/object.rb', line 258
def message
check_tag()
return @message
end
|
#tag? ⇒ Boolean
263
264
265
|
# File 'lib/git/object.rb', line 263
def tag?
true
end
|
267
268
269
270
|
# File 'lib/git/object.rb', line 267
def tagger
check_tag()
return @tagger
end
|