Class: Date
Instance Method Summary collapse
Instance Method Details
#to_yaml(opts = {}) ⇒ Object
350 351 352 353 354 |
# File 'lib/yaml/rubytypes.rb', line 350 def to_yaml( opts = {} ) YAML::quick_emit( self, opts ) do |out| out.scalar( "tag:yaml.org,2002:timestamp", self.to_s, :plain ) end end |