Class: Selector
- Inherits:
-
Object
- Object
- Selector
- Defined in:
- lib/tb/cmdutil.rb
Instance Method Summary collapse
- #finish ⇒ Object
-
#initialize(i, aggregator) ⇒ Selector
constructor
A new instance of Selector.
- #update(ary) ⇒ Object
Constructor Details
#initialize(i, aggregator) ⇒ Selector
Returns a new instance of Selector.
195 |
# File 'lib/tb/cmdutil.rb', line 195 def initialize(i, aggregator) @i = i; @agg = aggregator end |
Instance Method Details
#finish ⇒ Object
197 |
# File 'lib/tb/cmdutil.rb', line 197 def finish() @agg.finish end |
#update(ary) ⇒ Object
196 |
# File 'lib/tb/cmdutil.rb', line 196 def update(ary) @agg.update(ary[@i]) end |