diff options
| author | Jack Nagel | 2014-08-07 00:48:13 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-08-07 00:48:13 -0500 |
| commit | 7e0e0a7aa2c23c9ec37b0f793d90ab6300a0f88d (patch) | |
| tree | 54be7885085a2b453869085f30225c731890af8d /Library/Homebrew | |
| parent | 48c5fd3bda517d06118642b9144a4152199338b5 (diff) | |
| download | homebrew-7e0e0a7aa2c23c9ec37b0f793d90ab6300a0f88d.tar.bz2 | |
Default to the empty string instead of nil
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/options.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/options.rb b/Library/Homebrew/options.rb index 3988085ce..6b982a405 100644 --- a/Library/Homebrew/options.rb +++ b/Library/Homebrew/options.rb @@ -3,9 +3,9 @@ require 'set' class Option attr_reader :name, :description, :flag - def initialize(name, description=nil) + def initialize(name, description="") @name, @flag = split_name(name) - @description = description.to_s + @description = description end def to_s |
