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
#initialize(base, sha, name) ⇒ Tag
Returns a new instance of Tag.
249 250 251 252 253 254 |
# File 'lib/git/object.rb', line 249 def initialize(base, sha, name) super(base, sha) @name = name @annotated = nil @loaded = false end |
Instance Attribute Details
#name
Returns the value of attribute name.
247 248 249 |
# File 'lib/git/object.rb', line 247 def name @name end |
Instance Method Details
#annotated? ⇒ Boolean
256 257 258 |
# File 'lib/git/object.rb', line 256 def annotated? @annotated ||= (@base.lib.cat_file_type(self.name) == 'tag') end |
#message
260 261 262 263 |
# File 'lib/git/object.rb', line 260 def check_tag() return @message end |
#tag? ⇒ Boolean
265 266 267 |
# File 'lib/git/object.rb', line 265 def tag? true end |
#tagger
269 270 271 272 |
# File 'lib/git/object.rb', line 269 def tagger check_tag() return @tagger end |