summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenichi Kamiya <kachick1@gmail.com>2012-10-20 21:40:34 +0900
committerKenichi Kamiya <kachick1@gmail.com>2012-10-20 21:40:40 +0900
commita4bc0eadbafe8b46351b46801eaef9b11bff42ca (patch)
treeb27a286d95ad0b56f0b3a03f6aac5ff13e131d20
parent407348e48071e0e91fd999976d58c22577cc0554 (diff)
downloadslop-a4bc0eadbafe8b46351b46801eaef9b11bff42ca.tar.gz
fix argument receiver of Slop#respond_to? for second argument
Test Suite: * 407348e48071e0e91fd999976d58c22577cc0554
-rw-r--r--lib/slop.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/slop.rb b/lib/slop.rb
index 7f60472..908cb4b 100644
--- a/lib/slop.rb
+++ b/lib/slop.rb
@@ -292,7 +292,7 @@ class Slop
# Override this method so we can check if an option? method exists.
#
# Returns true if this option key exists in our list of options.
- def respond_to?(method)
+ def respond_to?(method, include_private = false)
method = method.to_s
if method.end_with?('?') && options.any? { |o| o.key == method.chop }
true