highline-color 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/highline/color.rb +7 -3
- data/lib/highline/color/version.rb +1 -1
- metadata +1 -1
data/lib/highline/color.rb
CHANGED
@@ -12,11 +12,15 @@ module Highline
|
|
12
12
|
end
|
13
13
|
|
14
14
|
HighLine.color_scheme.keys.each do |schema|
|
15
|
-
|
16
|
-
|
15
|
+
define_method "say_#{schema}" do |msg|
|
16
|
+
say color(msg, schema)
|
17
|
+
end
|
18
|
+
define_method "agree_#{schema}" do |msg|
|
19
|
+
say color(msg, schema)
|
20
|
+
end
|
21
|
+
define_method "ask_#{schema}" do |msg|
|
17
22
|
say color(msg, schema)
|
18
23
|
end
|
19
|
-
end
|
20
24
|
end
|
21
25
|
end
|
22
26
|
end
|