Sha256: 7990f45abed2281b445f9c8a4bd2703808036daf44b9885d50fbe27a3ab5c79a

Contents?: true

Size: 208 Bytes

Versions: 2

Compression:

Stored size: 208 Bytes

Contents

class UntilUser
  def initialize(value)
    @value = value
    @i = 0
    @counts = []
  end

  def until_count_to_value
    until @i > @value
      @counts << @i
      @i += 1
    end

    @counts
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
virtual_keywords-0.3.1 lib/spec/virtualizees/until_user.rb
virtual_keywords-0.3.0 lib/spec/virtualizees/until_user.rb