Sha256: 26da896170bd04408613695bb80f5a81383d5a3390ac2a6fdf38d40ca8666984

Contents?: true

Size: 337 Bytes

Versions: 5

Compression:

Stored size: 337 Bytes

Contents

require 'colorize'

module RspecPacmanFormatter
  class Characters
    BLINKY = 'ᗣ'.light_red
    PINKY  = 'ᗣ'.light_magenta
    INKY   = 'ᗣ'.light_blue
    CLYDE  = 'ᗣ'.yellow
    PACMAN = 'ᗧ'.light_yellow
    PACDOT = '•'.light_yellow

    def self.random_ghost
      [BLINKY, PINKY, INKY, CLYDE].sample
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rspec_pacman_formatter-0.1.7 lib/rspec_pacman_formatter/characters.rb
rspec_pacman_formatter-0.1.6 lib/rspec_pacman_formatter/characters.rb
rspec_pacman_formatter-0.1.5 lib/rspec_pacman_formatter/characters.rb
rspec_pacman_formatter-0.1.4 lib/rspec_pacman_formatter/characters.rb
rspec_pacman_formatter-0.1.3 lib/rspec_pacman_formatter/characters.rb