Module: SuperLogger::Color
- Defined in:
- lib/super_logger.rb
Class Method Summary collapse
Class Method Details
.color_loop ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/super_logger.rb', line 11 def self.color_loop @color_loop ||= Enumerator.new do |y| loop do colors.each { |c| y << c } end end end |
.colors ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/super_logger.rb', line 19 def self.colors @colors ||= begin colors = ColorizedString.colors.shuffle colors.delete(:default) colors end end |
.next ⇒ Object
7 8 9 |
# File 'lib/super_logger.rb', line 7 def self.next color_loop.next end |