Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • yaml/rubytypes.rb

Parent

Methods

Date

Public Instance Methods

to_yaml( opts = {} ) click to toggle source
 
               # File yaml/rubytypes.rb, line 348
def to_yaml( opts = {} )
        YAML::quick_emit( self, opts ) do |out|
    out.scalar( "tag:yaml.org,2002:timestamp", self.to_s, :plain )
end
end