diff options
author | Lee Jarvis <lee@jarvis.co> | 2011-03-16 19:23:31 +0000 |
---|---|---|
committer | Lee Jarvis <lee@jarvis.co> | 2011-03-16 19:23:31 +0000 |
commit | ef62851534fd6c6ad46d4a596f0317fddfbc1c83 (patch) | |
tree | 2fa573a30cea2a5fa3e7fc49bb21d6d9ce6c32a2 | |
parent | b0ca343873244a3a37df0b4212f4f9f6aabc7b6c (diff) | |
download | slop-1.0.0.rc1.tar.gz |
keep line length < 80v1.0.0.rc1
-rw-r--r-- | lib/slop/option.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/slop/option.rb b/lib/slop/option.rb index 4f0a951..2d9ad2a 100644 --- a/lib/slop/option.rb +++ b/lib/slop/option.rb @@ -26,7 +26,7 @@ class Slop attr_reader :callback attr_writer :argument_value - def initialize(slop, short, long, description, argument, options={}, &block) + def initialize(slop, short, long, description, argument, options={}, &blk) @slop = slop @short_flag = short @long_flag = long @@ -38,7 +38,7 @@ class Slop @slop.longest_flag = @long_flag.size end - @callback = block if block_given? + @callback = blk if block_given? @callback ||= options[:callback] @argument_value = nil end |