aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/develop/html_harvest_topics.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2015-03-19 18:38:21 -0400
committerRalph Amissah <ralph@amissah.com>2015-03-23 21:46:12 -0400
commit64dfdccbc0a136aab15c53ef0375244a28895429 (patch)
treed1cca15d22480dfb9e31765bd6160e72aab0c102 /lib/sisu/develop/html_harvest_topics.rb
parentd: manifest add html ids to label/identify content (diff)
d: ao & elsewhere, use of map & select
Diffstat (limited to 'lib/sisu/develop/html_harvest_topics.rb')
-rw-r--r--lib/sisu/develop/html_harvest_topics.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/sisu/develop/html_harvest_topics.rb b/lib/sisu/develop/html_harvest_topics.rb
index bd461377..22c880d6 100644
--- a/lib/sisu/develop/html_harvest_topics.rb
+++ b/lib/sisu/develop/html_harvest_topics.rb
@@ -158,10 +158,9 @@ module SiSU_HarvestTopics
end
idx_array[lang] <<=if @idx_list =~/;/
g=@idx_list.scan(/[^;]+/)
- idxl=[]
- g.each do |i|
+ g.each.map do |i|
i=i.strip
- idxl << {
+ {
filename: filename,
file: file,
rough_idx: i,
@@ -171,7 +170,6 @@ module SiSU_HarvestTopics
lang: lang
}
end
- idxl
else {
filename: filename,
file: file,