summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLee Jarvis <leejarvis@fastmail.com>2017-05-02 14:04:09 +0100
committerLee Jarvis <leejarvis@fastmail.com>2017-05-02 14:04:59 +0100
commit9ff6b2a8eb7e5376c5b9f36fcc0f2fdba6b0e054 (patch)
tree85c7ce313f0187ec3d37e47429842bae5dd09044 /lib
parent1efce8b0d8accb46846d3f014dc4235730fa3ecb (diff)
downloadslop-9ff6b2a8eb7e5376c5b9f36fcc0f2fdba6b0e054.tar.gz
Fix Ruby 2.0.0 broken `private def ...`
and re-add to the CI
Diffstat (limited to 'lib')
-rw-r--r--lib/slop/parser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/slop/parser.rb b/lib/slop/parser.rb
index 2b20d36..7d8ad46 100644
--- a/lib/slop/parser.rb
+++ b/lib/slop/parser.rb
@@ -145,7 +145,7 @@ module Slop
options.find { |o| o.flags.include?(flag) }
end
- private def partition(strings)
+ def partition(strings)
if strings.include?("--")
partition_idx = strings.index("--")
[strings[0..partition_idx-1], strings[partition_idx+1..-1]]