diff options
Diffstat (limited to 'Library/Homebrew/options.rb')
| -rw-r--r-- | Library/Homebrew/options.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/options.rb b/Library/Homebrew/options.rb index edeb5d870..6d6242171 100644 --- a/Library/Homebrew/options.rb +++ b/Library/Homebrew/options.rb @@ -47,6 +47,11 @@ class DeprecatedOption def current_flag "--#{current}" end + + def ==(other) + instance_of?(other.class) && old == other.old && current == other.current + end + alias_method :eql?, :== end class Options |
