module Numbers
Public Instance Methods
from(n, increment=1)
click to toggle source
# File lib/abstractivator/numbers.rb, line 4 def from(n, increment=1) Enumerator.unfold(n) { |nxt| [nxt, nxt + increment] } end