Minitest::PrideLOL

class Minitest::PrideLOL

Parent:
Minitest::PrideIO

If you thought the PrideIO was colorful…

(Inspired by lolcat, but with clean math)

Public Instance Methods

pride(string) Show source

Make the string even more colorful. Damnit.

# File lib/minitest/pride_plugin.rb, line 136
def pride string
  c = @colors[@index % @size]
  @index += 1
  "#{ESC}38;5;#{c}m#{string}#{NND}"
end

© Ryan Davis, seattle.rb
Licensed under the MIT License.

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部