aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/options.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-09-05 10:36:28 -0400
committerRalph Amissah <ralph@amissah.com>2011-09-05 10:41:45 -0400
commit7bc559f85cb0b6c6f4cdfe127a386573b4c5d8ce (patch)
tree4d7832a654779710edbf304437be8ee8ab0e6dc7 /lib/sisu/v3/options.rb
parentv3: 3.0.17 version & changelog "opened" (diff)
v3: unix conditional tests (? :) remove line break markers before : cosmetic
Diffstat (limited to 'lib/sisu/v3/options.rb')
-rw-r--r--lib/sisu/v3/options.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/sisu/v3/options.rb b/lib/sisu/v3/options.rb
index 5b179a57..77031ea4 100644
--- a/lib/sisu/v3/options.rb
+++ b/lib/sisu/v3/options.rb
@@ -212,7 +212,7 @@ module SiSU_commandline
u=/.+?\/([^\/]+)(?:\/(?:#{r})$|$)/
t=/.+\/(#{r})$/
l_p = (pt.split[0].realpath.to_s[t,1]) \
- ? pt.split[0].realpath.to_s[t,1] \
+ ? pt.split[0].realpath.to_s[t,1]
: nil
#: ''
lng << l_p
@@ -233,7 +233,7 @@ module SiSU_commandline
f: pt.split[1].to_s,
pth_stub: pt.split[0].realpath.to_s[u,1],
lng: (pt.split[0].realpath.to_s[t,1]) \
- ? pt.split[0].realpath.to_s[t,1] \
+ ? pt.split[0].realpath.to_s[t,1]
: nil,
lng_is: lng_is
}
@@ -257,31 +257,31 @@ module SiSU_commandline
y=case x
when /0/
(x=~/^-1\S+/) \
- ? x.gsub(/^-0(\S+)/,shortcut.cf_0 + ' -\1') \
+ ? x.gsub(/^-0(\S+)/,shortcut.cf_0 + ' -\1')
: x.gsub(/^-0/,shortcut.cf_0 + ' ')
when /1/
(x=~/^-1\S+/) \
- ? x.gsub(/^-1(\S+)/,shortcut.cf_1 + ' -\1') \
+ ? x.gsub(/^-1(\S+)/,shortcut.cf_1 + ' -\1')
: x.gsub(/^-1/,shortcut.cf_1 + ' ')
when /2/
(x=~/^-2\S+/) \
- ? x.gsub(/^-2(\S+)/,shortcut.cf_2 + ' -\1') \
+ ? x.gsub(/^-2(\S+)/,shortcut.cf_2 + ' -\1')
: x.gsub(/^-2/,shortcut.cf_2 + ' ')
when /3/
(x=~/^-3\S+/) \
- ? x.gsub(/^-3(\S+)/,shortcut.cf_3 + ' -\1') \
+ ? x.gsub(/^-3(\S+)/,shortcut.cf_3 + ' -\1')
: x.gsub(/^-3/,shortcut.cf_3 + ' ')
when /4/
(x=~/^-4\S+/) \
- ? x.gsub(/^-4(\S+)/,shortcut.cf_4 + ' -\1') \
+ ? x.gsub(/^-4(\S+)/,shortcut.cf_4 + ' -\1')
: x.gsub(/^-4/,shortcut.cf_4 + ' ')
when /5/
(x=~/^-5\S+/) \
- ? x.gsub(/^-5(\S+)/,shortcut.cf_5 + ' -\1') \
+ ? x.gsub(/^-5(\S+)/,shortcut.cf_5 + ' -\1')
: x.gsub(/^-5/,shortcut.cf_5 + ' ')
when /6/
(x=~/^-6\S+/) \
- ? x.gsub(/^-6(\S+)/,shortcut.cf_5 + ' -\1') \
+ ? x.gsub(/^-6(\S+)/,shortcut.cf_5 + ' -\1')
: x.gsub(/^-6/,shortcut.cf_5 + ' ')
else x
end