method

step_with_blockless

rails latest stable - Class: ActiveSupport::CoreExtensions::Range::BlocklessStep

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

step_with_blockless(value = 1, &block)
public

No documentation available.

# File activesupport/lib/active_support/core_ext/range/blockless_step.rb, line 11
          def step_with_blockless(value = 1, &block)
            if block_given?
              step_without_blockless(value, &block)
            else
              returning [] do |array|
                step_without_blockless(value) { |step| array << step }
              end
            end
          end