Module: Doing

Defined in:
lib/doing.rb,
lib/doing/fluent_value.rb,
lib/doing/fluent_enumerator.rb,
lib/doing/enumerator_wrapper.rb

Defined Under Namespace

Modules: EnumeratorWrapper Classes: FluentEnumerator, FluentValue

Instance Method Summary collapse

Instance Method Details

#doing(stop_value = nil, &block) ⇒ Object

Raises:

  • (ArgumentError)


4
5
6
7
8
# File 'lib/doing.rb', line 4

def doing(stop_value = nil, &block)
  raise ArgumentError.new('No block given') unless block_given?

  FluentEnumerator.new(build_enumerator(stop_value, block))
end