lib/xmlss/element/cell.rb in xmlss-1.0.0.rc.4 vs lib/xmlss/element/cell.rb in xmlss-1.0.0

- old
+ new

@@ -1,6 +1,7 @@ require 'enumeration' +require 'date' module Xmlss; end module Xmlss::Element class Cell @@ -36,9 +37,13 @@ def data_xml_value case self.data when ::Date, ::Time, ::DateTime self.data.strftime("%Y-%m-%dT%H:%M:%S") + when ::TrueClass + 1 + when ::FalseClass + 0 else self.data.to_s end end