Sha256: 35c6ce9429ff0a8f7cf81c7dfad0fb1f8b3b3f5fc2fe3120c5e003833ec81e82

Contents?: true

Size: 259 Bytes

Versions: 229

Compression:

Stored size: 259 Bytes

Contents

class Robot
  def self.forget
    @@name_enumerator = [*'AA000'..'ZZ999'].shuffle.each
  end

  self.forget

  attr_reader :name

  def initialize
    reset
  end

  def reset
    @name = @@name_enumerator.next
  end
end

module BookKeeping
  VERSION = 3
end

Version data entries

229 entries across 229 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.179 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.178 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.177 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.176 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.175 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.174 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.173 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.172 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.171 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.170 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.169 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.167 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.166 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.165 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.164 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.163 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.162 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.161 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb
trackler-2.2.1.160 tracks/ruby/exercises/robot-name/.meta/solutions/robot_name.rb