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.
4 5 6 7 |
# File 'lib/contrek/reducers/reducer.rb', line 4 def initialize(points: list_of_points, options: {}) @points = points @opts = end |
Instance Method Details
#reduce! ⇒ Object
9 10 11 |
# File 'lib/contrek/reducers/reducer.rb', line 9 def reduce! @points end |