Class: Date
Instance Method Summary collapse
Instance Method Details
#to_yaml(opts = {}) ⇒ Object
362 363 364 365 366 367 |
# File 'lib/syck/rubytypes.rb', line 362 def to_yaml( opts = {} ) return super unless YAML::ENGINE.syck? YAML::quick_emit( self, opts ) do |out| out.scalar( "tag:yaml.org,2002:timestamp", self.to_s, :plain ) end end |