Class: IterationList
- Inherits:
-
Object
- Object
- IterationList
- Defined in:
- lib/sensei/iteration_list.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ IterationList
constructor
A new instance of IterationList.
- #iterations ⇒ Object
Constructor Details
#initialize(path) ⇒ IterationList
Returns a new instance of IterationList.
2 3 4 |
# File 'lib/sensei/iteration_list.rb', line 2 def initialize(path) @path = path end |
Instance Method Details
#iterations ⇒ Object
6 7 8 9 10 |
# File 'lib/sensei/iteration_list.rb', line 6 def iterations GitTagLister.new(@path)..select do |tag| /iteration-\d*/.match(tag) end.size end |