Class: ConvenientService::Service::Plugins::CanHaveStepAwareEnumerables::Entities::StepAwareEnumerables::ArithmeticSequenceEnumerator

Inherits:
Enumerator
  • Object
show all
Defined in:
lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/arithmetic_sequence_enumerator.rb

Instance Attribute Summary

Attributes inherited from Base

#modifiers, #object, #organizer, #propagated_result

Instance Method Summary collapse

Methods inherited from Enumerator

#with_index, #with_object

Methods inherited from Enumerable

#all?, #any?, #chain, #chunk, #chunk_while, #collect, #collect_concat, #compact, #count, #cycle, #detect, #drop, #drop_while, #each_cons, #each_entry, #each_slice, #each_with_index, #each_with_object, #entries, #filter, #filter_map, #find, #find_all, #find_index, #first, #flat_map, #grep, #grep_v, #group_by, #include?, #inject, #lazy, #map, #max, #max_by, #member?, #min, #min_by, #minmax, #minmax_by, #none?, #one?, #partition, #reduce, #reject, #reverse_each, #select, #select_exactly, #slice_after, #slice_before, #slice_when, #sort, #sort_by, #sum, #take, #take_while, #tally, #to_a, #to_h, #to_set, #uniq, #zip

Methods inherited from Base

#evaluate_by, #initialize, #result

Methods included from ConvenientService::Support::AbstractMethod

abstract_method

Instance Method Details

#default_data_keySymbol

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Symbol)


27
28
29
# File 'lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/arithmetic_sequence_enumerator.rb', line 27

def default_data_key
  :values
end

#default_evaluate_bySymbol

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Symbol)


36
37
38
# File 'lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/arithmetic_sequence_enumerator.rb', line 36

def default_evaluate_by
  nil
end

#each(&iteration_block) ⇒ ConvenientService::Service::Plugins::CanHaveStepAwareEnumerables::Entities::StepAwareEnumerables::Enumerable



44
45
46
47
48
# File 'lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/arithmetic_sequence_enumerator.rb', line 44

def each(&iteration_block)
  with_processing_return_value_as_arithmetic_sequence_enumerator(arguments(&iteration_block)) do |&step_aware_iteration_block|
    enumerable.each(&step_aware_iteration_block)
  end
end