Permalink
Browse files

Array()

  • Loading branch information...
1 parent c67b2f3 commit 90c93c85a3abe062de2c02f2b5d5a4a9b1809952 Avdi Grimm committed Jan 11, 2010
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/cowsay.rb
View
@@ -13,11 +13,7 @@ def say(message, options={})
command << " -e '#{options[:strings][:eyes]}'"
end
- messages = case message
- when Array then message
- when nil then []
- else [message]
- end
+ messages = Array(message)
results = []
results = messages.map { |message|
checked_popen(command, "w+", lambda{message}) do |process|

0 comments on commit 90c93c8

Please sign in to comment.