Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert arrayify

  • Loading branch information...
commit a9bf1e6cfb185fc495af4fdb911227957818cf27 1 parent f631e9e
@avdi authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/cowsay.rb
View
6 lib/cowsay.rb
@@ -13,7 +13,11 @@ def say(message, options={})
command << " -e '#{options[:strings][:eyes]}'"
end
- messages = Array(message)
+ messages = case message
+ when Array then message
+ when nil then []
+ else [message]
+ end
results = []
messages.each do |message|
@io_class.popen(command, "w+") do |process|
Please sign in to comment.
Something went wrong with that request. Please try again.