Permalink
Browse files

Revert arrayify

  • Loading branch information...
1 parent f631e9e commit a9bf1e6cfb185fc495af4fdb911227957818cf27 Avdi Grimm committed Jan 6, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/cowsay.rb
View
@@ -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|

0 comments on commit a9bf1e6

Please sign in to comment.