Class: Git::Object::Tag
- Inherits:
-
AbstractObject
- Object
- AbstractObject
- Git::Object::Tag
- Defined in:
- lib/git/object.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from AbstractObject
#mode, #objectish, #size, #type
Instance Method Summary collapse
-
#initialize(base, sha, name) ⇒ Tag
constructor
A new instance of Tag.
- #tag? ⇒ Boolean
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.
240 241 242 243 |
# File 'lib/git/object.rb', line 240 def initialize(base, sha, name) super(base, sha) @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
238 239 240 |
# File 'lib/git/object.rb', line 238 def name @name end |
Instance Method Details
#tag? ⇒ Boolean
245 246 247 |
# File 'lib/git/object.rb', line 245 def tag? true end |