Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use #fetch for width option

  • Loading branch information...
commit 402f7b087c59d1bce0bc8f81efe99241ce7422e6 1 parent d3c3be1
@avdi authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cowsay.rb
View
2  lib/cowsay.rb
@@ -9,7 +9,7 @@ def initialize(options={})
def say(message, options={})
command = "cowsay"
- width = options[:width] || 40
+ width = options.fetch(:width) {40}
command << " -W #{width}"
if options[:strings] && options[:strings][:eyes]
command << " -e '#{options[:strings][:eyes]}'"
Please sign in to comment.
Something went wrong with that request. Please try again.