Sha256: b894d906cd96a3d0c722c0af6feb30bed848f5ae45c412414eacca0486c5bedc

Contents?: true

Size: 232 Bytes

Versions: 2

Compression:

Stored size: 232 Bytes

Contents

class WhileUser < ApplicationController
  def initialize(value)
    @value = value
    @i = 0
    @counts = []
  end

  def while_count_to_value
    while @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/while_user.rb
virtual_keywords-0.3.0 lib/spec/virtualizees/while_user.rb