lib/macros4cuke/templating/placeholder.rb in macros4cuke-0.5.14 vs lib/macros4cuke/templating/placeholder.rb in macros4cuke-0.5.15

- old
+ new

@@ -20,21 +20,21 @@ # Returns an empty string when no value is assigned to the placeholder. def render(aContextObject, theLocals) actual_value = retrieve_value_from(aContextObject, theLocals) result = case actual_value - when NilClass - '' + when NilClass + '' - when Array - # TODO: Move away from hard-coded separator. - actual_value.join('<br/>') + when Array + # TODO: Move away from hard-coded separator. + actual_value.join('<br/>') - when String - actual_value - else - actual_value.to_s - end + when String + actual_value + else + actual_value.to_s + end return result end end # class end # module