diff --git a/mediawikibot.rb b/mediawikibot.rb index cc0e0e2..eacd92e 100755 --- a/mediawikibot.rb +++ b/mediawikibot.rb @@ -171,8 +171,7 @@ class WikiBot fields_string = get_raw(title).scan(template_re)[0][0] fields_string.split(/\|/).each do |field| - x = field.split(/=/) - key = x[0]; value = x[1] + (key, value) = field.split(/=/) fields[key] = value end @@ -194,5 +193,6 @@ class WikiBot return articles end -end -end +end # class WikiBot + +end # module MediaWikiBot