Class: Contrek::Reducers::Reducer
- Inherits:
-
Object
- Object
- Contrek::Reducers::Reducer
- Defined in:
- lib/contrek/reducers/reducer.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(points: list_of_points, options: {}) ⇒ Reducer
constructor
A new instance of Reducer.
- #reduce! ⇒ Object
Constructor Details
#initialize(points: list_of_points, options: {}) ⇒ Reducer
Returns a new instance of Reducer.
6 7 8 9 |
# File 'lib/contrek/reducers/reducer.rb', line 6 def initialize(points: list_of_points, options: {}) @points = points @opts = end |
Instance Method Details
#reduce! ⇒ Object
11 12 13 |
# File 'lib/contrek/reducers/reducer.rb', line 11 def reduce! @points end |