diff options
author | Lee Jarvis <leejarvis@fastmail.com> | 2017-05-02 14:04:09 +0100 |
---|---|---|
committer | Lee Jarvis <leejarvis@fastmail.com> | 2017-05-02 14:06:51 +0100 |
commit | 187e207303d40ed8f5c6d6c50441ed0ad1d6b373 (patch) | |
tree | 34f8c97283e2798c468d23a6a1571c4047213785 /lib | |
parent | 725ab19327d548d931d8711298fdd5612d4d779e (diff) | |
download | slop-187e207303d40ed8f5c6d6c50441ed0ad1d6b373.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.rb | 2 |
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]] |