- default_value.each do |subkey,subvalue|
- subvalue.scan(/%\{(\w+)\}/) do
- variables.push($1)
+ default_value.each_value do |subvalue|
+ subvalue.scan(/%\{(\w+)\}/) do
+ variables.push(Regexp.last_match(1))
+ end
+ end
+ else
+ default_value.scan(/%\{(\w+)\}/) do
+ variables.push(Regexp.last_match(1))