summaryrefslogtreecommitdiff
path: root/lib/slop.rb
diff options
context:
space:
mode:
authorLee Jarvis <ljjarvis@gmail.com>2013-06-16 09:57:15 +0100
committerLee Jarvis <ljjarvis@gmail.com>2013-08-13 20:35:16 +0100
commit9af8dae80f14ade1b04bd9c36b5ad39e9e039965 (patch)
treeb7030d3da366ec108127d3e44a51a18c1600a9fc /lib/slop.rb
parente5b41c5629957e27a86ca4b785baaae9e1b01df0 (diff)
downloadslop-9af8dae80f14ade1b04bd9c36b5ad39e9e039965.tar.gz
Slop is no longer enumerable, you should use Slop#options
Diffstat (limited to 'lib/slop.rb')
-rw-r--r--lib/slop.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/slop.rb b/lib/slop.rb
index f625459..852f1bc 100644
--- a/lib/slop.rb
+++ b/lib/slop.rb
@@ -2,9 +2,7 @@ require 'slop/option'
require 'slop/errors'
class Slop
- include Enumerable
-
- VERSION = '3.4.6'
+ VERSION = '3.4.5'
# Returns a default Hash of configuration options this Slop instance uses.
DEFAULT_CONFIG = {
@@ -240,11 +238,6 @@ class Slop
end
alias to_h to_hash
- # Enumerable interface. Yields each Slop::Option.
- def each(&block)
- options.each(&block)
- end
-
# Specify code to be executed when these options are parsed.
#
# callable - An object responding to a call method.