Class: Git::Object::Tag
- Inherits:
-
AbstractObject
- Object
- AbstractObject
- Git::Object::Tag
- Defined in:
- lib/git/object.rb
Instance Attribute Summary collapse
-
#name
Returns the value of attribute name.
Attributes inherited from AbstractObject
#mode, #objectish, #size, #type
Instance Method Summary collapse
- #annotated? ⇒ Boolean
-
#initialize(base, sha, name) ⇒ Tag
constructor
A new instance of Tag.
- #message
- #tag? ⇒ Boolean
- #tagger
Methods inherited from AbstractObject
#archive, #blob?, #commit?, #contents, #contents_array, #diff, #grep, #log, #sha, #to_s, #tree?
Constructor Details
permalink #initialize(base, sha, name) ⇒ Tag
Returns a new instance of Tag.
251 252 253 254 255 256 |
# File 'lib/git/object.rb', line 251 def initialize(base, sha, name) super(base, sha) @name = name @annotated = nil @loaded = false end |
Instance Attribute Details
permalink #name
Returns the value of attribute name.
249 250 251 |
# File 'lib/git/object.rb', line 249 def name @name end |
Instance Method Details
permalink #annotated? ⇒ Boolean
258 259 260 |
# File 'lib/git/object.rb', line 258 def annotated? @annotated ||= (@base.lib.cat_file_type(self.name) == 'tag') end |
permalink #message
[View source]
262 263 264 265 |
# File 'lib/git/object.rb', line 262 def check_tag() return @message end |
permalink #tag? ⇒ Boolean
267 268 269 |
# File 'lib/git/object.rb', line 267 def tag? true end |
permalink #tagger
[View source]
271 272 273 274 |
# File 'lib/git/object.rb', line 271 def tagger check_tag() return @tagger end |