Class: ValuesAggregator
- Inherits:
-
Object
- Object
- ValuesAggregator
- Defined in:
- lib/tb/cmdutil.rb
Instance Method Summary collapse
- #finish ⇒ Object
-
#initialize ⇒ ValuesAggregator
constructor
A new instance of ValuesAggregator.
- #update(v) ⇒ Object
Constructor Details
#initialize ⇒ ValuesAggregator
Returns a new instance of ValuesAggregator.
183 |
# File 'lib/tb/cmdutil.rb', line 183 def initialize() @result = [] end |
Instance Method Details
#finish ⇒ Object
185 |
# File 'lib/tb/cmdutil.rb', line 185 def finish() @result.join(",") end |
#update(v) ⇒ Object
184 |
# File 'lib/tb/cmdutil.rb', line 184 def update(v) @result << v if v end |