lib/gyoku/xml_value.rb in gyoku-0.3.0 vs lib/gyoku/xml_value.rb in gyoku-0.3.1

- old
+ new

@@ -12,9 +12,11 @@ object.strftime XS_DATETIME_FORMAT elsif String === object escape_xml ? CGI.escapeHTML(object) : object elsif object.respond_to?(:to_datetime) to_xml_value object.to_datetime + elsif object.respond_to?(:call) + to_xml_value object.call else object.to_s end end