Class: Avmtrf1::Git::Reference
- Inherits:
-
Object
- Object
- Avmtrf1::Git::Reference
- Includes:
- EacRubyUtils::SimpleCache
- Defined in:
- lib/avmtrf1/git/reference.rb
Instance Attribute Summary collapse
-
#fullname ⇒ Object
readonly
Returns the value of attribute fullname.
-
#revision ⇒ Object
readonly
Returns the value of attribute revision.
Instance Method Summary collapse
-
#initialize(git, fullname, revision) ⇒ Reference
constructor
A new instance of Reference.
- #type_uncached ⇒ Object
Constructor Details
#initialize(git, fullname, revision) ⇒ Reference
Returns a new instance of Reference.
12 13 14 15 16 |
# File 'lib/avmtrf1/git/reference.rb', line 12 def initialize(git, fullname, revision) @git = git @fullname = fullname @revision = revision end |
Instance Attribute Details
#fullname ⇒ Object (readonly)
Returns the value of attribute fullname.
10 11 12 |
# File 'lib/avmtrf1/git/reference.rb', line 10 def fullname @fullname end |
#revision ⇒ Object (readonly)
Returns the value of attribute revision.
10 11 12 |
# File 'lib/avmtrf1/git/reference.rb', line 10 def revision @revision end |
Instance Method Details
#type_uncached ⇒ Object
18 19 20 |
# File 'lib/avmtrf1/git/reference.rb', line 18 def type_uncached parsed_fullname.type end |