Skip to content

@wbednarski /read_README.rb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
def read_readme?
while true
print 'Did you read README.md? [y/n]: '
case gets.strip
when 'y', 'Y', 'yes'
puts 'Awesome!'
break
when /\A[nN]o?\Z/
puts 'Here you go!'
system('less README.md')
# if system('less') && $? == 0
# puts 'Something went wrong while opening README.md. (less README.md)'
# exit 1
# else
# exit 0
# end
else
exit 1
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.