We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4861fb8 commit 1905283Copy full SHA for 1905283
lib/sshkit/color.rb
@@ -1,7 +1,7 @@
1
require 'colorize'
2
3
module Color
4
- String::COLORS.each_pair do |color, _|
+ String.colors.each do |color|
5
instance_eval <<-RUBY, __FILE__, __LINE__
6
def #{color}(string = '')
7
string = yield if block_given?
@@ -10,7 +10,7 @@ def #{color}(string = '')
10
RUBY
11
end
12
13
- String::MODES.each_pair do |mode, _|
+ String.modes.each do |mode|
14
15
def #{mode}(string = '')
16
0 commit comments