summaryrefslogtreecommitdiff
path: root/lib/slop/option.rb
diff options
context:
space:
mode:
authorLee Jarvis <ljjarvis@gmail.com>2013-01-13 12:40:58 +0000
committerLee Jarvis <ljjarvis@gmail.com>2013-01-13 12:40:58 +0000
commit6e4d2b6ca6c5a20e8265c857422f7e7febd33e97 (patch)
tree23b7ae349e063d7ea0b10b0346b593e1054481e1 /lib/slop/option.rb
parentd4427b202424ed3a9d1d73ce5bdd4c051e14a8ce (diff)
downloadslop-6e4d2b6ca6c5a20e8265c857422f7e7febd33e97.tar.gz
Revert "ensure option duplicate checks for long OR short flags"
This reverts commit d4427b202424ed3a9d1d73ce5bdd4c051e14a8ce.
Diffstat (limited to 'lib/slop/option.rb')
-rw-r--r--lib/slop/option.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/slop/option.rb b/lib/slop/option.rb
index 691a99e..c63fd1a 100644
--- a/lib/slop/option.rb
+++ b/lib/slop/option.rb
@@ -122,14 +122,6 @@ class Slop
end
end
- def eql?(other)
- short == other.short || long == other.long
- end
-
- def hash
- [short, long].hash
- end
-
# Returns the help String for this option.
def to_s
return config[:help] if config[:help].respond_to?(:to_str)