Skip to content

Commit fa44776

Browse files
committed
Rewrite Shell::Basic#no? to properly handle misc. input
1 parent 9841c7d commit fa44776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/thor/shell/basic.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def yes?(statement, color=nil)
112112
# "no".
113113
#
114114
def no?(statement, color=nil)
115-
!yes?(statement, color)
115+
!!(ask(statement, color) =~ is?(:no))
116116
end
117117

118118
# Prints values in columns

0 commit comments

Comments
 (0)