diff options
author | Ralph Amissah <ralph@amissah.com> | 2015-03-19 18:38:21 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2015-03-23 21:46:12 -0400 |
commit | 64dfdccbc0a136aab15c53ef0375244a28895429 (patch) | |
tree | d1cca15d22480dfb9e31765bd6160e72aab0c102 /lib/sisu/develop/hub_options.rb | |
parent | d: manifest add html ids to label/identify content (diff) |
d: ao & elsewhere, use of map & select
Diffstat (limited to 'lib/sisu/develop/hub_options.rb')
-rw-r--r-- | lib/sisu/develop/hub_options.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/sisu/develop/hub_options.rb b/lib/sisu/develop/hub_options.rb index 6e22c2ae..f6a40be9 100644 --- a/lib/sisu/develop/hub_options.rb +++ b/lib/sisu/develop/hub_options.rb @@ -249,17 +249,15 @@ module SiSU_Commandline end end def init_selected_lang_dirs(a) - @z=[] - a.each do |y| + @z=a.each.map do |y| if y =~/^#{lng_base}\/(\S+?\.ss[tm])$/ @fn=$1 - @z << y + y elsif y =~/^#{@lang_regx}\/?$/ - @z << "#{y}/#{@fn}" - else @z << y + "#{y}/#{@fn}" + else y end end - @z end def init a=@a |