method

step_with_blockless

Importance_0
v2.3.8 - Show latest stable - 0 notes - Class: ActiveSupport::CoreExtensions::Range::BlocklessStep
step_with_blockless(value = 1, &block) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.