lib/macros4cuke/templating/section.rb in macros4cuke-0.4.03 vs lib/macros4cuke/templating/section.rb in macros4cuke-0.4.04

- old
+ new

@@ -35,15 +35,15 @@ # Retrieve all placeholder names that appear in the template. # @return [Array] The list of placeholder names. def variables() all_vars = children.each_with_object([]) do |a_child, subResult| case a_child - when Placeholder - subResult << a_child.name - when Section - subResult.concat(a_child.variables) - else - # Do nothing + when Placeholder + subResult << a_child.name + when Section + subResult.concat(a_child.variables) + else + # Do nothing end end return all_vars.flatten.uniq end