diff options
author | Lee Jarvis <lee@jarvis.co> | 2011-03-16 18:52:16 +0000 |
---|---|---|
committer | Lee Jarvis <lee@jarvis.co> | 2011-03-16 18:52:16 +0000 |
commit | e7819fb5d284a46c813b3dbca77f376c8f459a4d (patch) | |
tree | 75f0bcbd7a6ada4f82c3bdf9067c919b011696cf | |
parent | 08860d8547e47ac85381099b87cba888c5019e78 (diff) | |
download | slop-e7819fb5d284a46c813b3dbca77f376c8f459a4d.tar.gz |
get rid of inline assignments
-rw-r--r-- | lib/slop/option.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/slop/option.rb b/lib/slop/option.rb index c8e3618..2417e9e 100644 --- a/lib/slop/option.rb +++ b/lib/slop/option.rb @@ -28,8 +28,10 @@ class Slop def initialize(slop, short, long, description, argument, options={}, &block) @slop = slop - @short_flag, @long_flag = short, long - @description, @expects_argument = description, argument + @short_flag = short + @long_flag = long + @description = description + @expects_argument = argument @options = options if @long_flag && @long_flag.size > @slop.longest_flag |