In Files

  • syck/lib/syck/rubytypes.rb

Parent

Methods

Date

Public Instance Methods

to_yaml( opts = {} ) click to toggle source
 
               # File syck/lib/syck/rubytypes.rb, line 360
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