summaryrefslogtreecommitdiff
path: root/lib/slop.rb
diff options
context:
space:
mode:
authorLee Jarvis <ljjarvis@gmail.com>2013-08-13 20:37:10 +0100
committerLee Jarvis <ljjarvis@gmail.com>2013-08-13 20:37:10 +0100
commit8e7dca4c0f6ecba4eb21f8ca44dff8293a8bbbd6 (patch)
treedb2369834c7769c3f63c96405f2b8200d65d6a8e /lib/slop.rb
parentd0d1c4e5aeb1afde1166b9e18ab5ec8476f09b69 (diff)
downloadslop-8e7dca4c0f6ecba4eb21f8ca44dff8293a8bbbd6.tar.gz
Use curlys for chaining block method calls
Diffstat (limited to 'lib/slop.rb')
-rw-r--r--lib/slop.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/slop.rb b/lib/slop.rb
index dfe459f..3c77334 100644
--- a/lib/slop.rb
+++ b/lib/slop.rb
@@ -601,9 +601,9 @@ class Slop
def commands_to_help
padding = 0
@commands.each { |c, _| padding = c.size if c.size > padding }
- @commands.map do |cmd, opts|
+ @commands.map { |cmd, opts|
" #{cmd}#{' ' * (padding - cmd.size)} #{opts.description}"
- end.join("\n")
+ }.join("\n")
end
end