Class: GTA::TagFinder
- Inherits:
-
Object
- Object
- GTA::TagFinder
- Defined in:
- lib/gta/tag_finder.rb
Instance Attribute Summary collapse
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(tag) ⇒ TagFinder
constructor
A new instance of TagFinder.
- #newest ⇒ Object
- #tag_list ⇒ Object
- #tags ⇒ Object
Constructor Details
#initialize(tag) ⇒ TagFinder
Returns a new instance of TagFinder.
5 6 7 |
# File 'lib/gta/tag_finder.rb', line 5 def initialize(tag) @tag = tag end |
Instance Attribute Details
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
3 4 5 |
# File 'lib/gta/tag_finder.rb', line 3 def tag @tag end |
Instance Method Details
#newest ⇒ Object
9 10 11 12 |
# File 'lib/gta/tag_finder.rb', line 9 def newest return unless tag .last end |
#tag_list ⇒ Object
14 15 16 |
# File 'lib/gta/tag_finder.rb', line 14 def tag_list `git tag -l #{tag}` end |
#tags ⇒ Object
18 19 20 |
# File 'lib/gta/tag_finder.rb', line 18 def tag_list.split(/\s/) end |