@@ -67,15 +67,15 @@ def indent(count = 1)
67
67
# Readline.
68
68
#
69
69
# ==== Example
70
- # ask("What is your name?")
70
+ # ask("What is your name?")
71
71
#
72
- # ask("What is the planet furthest from the sun?", :default => "Pluto ")
72
+ # ask("What is the planet furthest from the sun?", :default => "Neptune ")
73
73
#
74
- # ask("What is your favorite Neopolitan flavor?", :limited_to => ["strawberry", "chocolate", "vanilla"])
74
+ # ask("What is your favorite Neopolitan flavor?", :limited_to => ["strawberry", "chocolate", "vanilla"])
75
75
#
76
- # ask("What is your password?", :echo => false)
76
+ # ask("What is your password?", :echo => false)
77
77
#
78
- # ask("Where should the file be saved?", :path => true)
78
+ # ask("Where should the file be saved?", :path => true)
79
79
#
80
80
def ask ( statement , *args )
81
81
options = args . last . is_a? ( Hash ) ? args . pop : { }
@@ -93,7 +93,7 @@ def ask(statement, *args)
93
93
# are passed straight to puts (behavior got from Highline).
94
94
#
95
95
# ==== Example
96
- # say("I know you knew that.")
96
+ # say("I know you knew that.")
97
97
#
98
98
def say ( message = "" , color = nil , force_new_line = ( message . to_s !~ /( |\t )\Z / ) )
99
99
return if quiet?
@@ -110,7 +110,7 @@ def say(message = "", color = nil, force_new_line = (message.to_s !~ /( |\t)\Z/)
110
110
# are passed straight to puts (behavior got from Highline).
111
111
#
112
112
# ==== Example
113
- # say_error("error: something went wrong")
113
+ # say_error("error: something went wrong")
114
114
#
115
115
def say_error ( message = "" , color = nil , force_new_line = ( message . to_s !~ /( |\t )\Z / ) )
116
116
return if quiet?
0 commit comments