Class: Streamer::Functors::Count
- Defined in:
- lib/streamer/functors/count.rb
Overview
Count provides the number of items in a list
Instance Attribute Summary
Attributes inherited from Functor
Instance Method Summary collapse
Methods inherited from Functor
#class_name, #initialize, #type_name
Constructor Details
This class inherits a constructor from Streamer::Functors::Functor
Instance Method Details
#call ⇒ Object
5 6 7 |
# File 'lib/streamer/functors/count.rb', line 5 def call list.size end |