Class: Date

Inherits:
Object show all
Defined in:
lib/yaml/rubytypes.rb

Instance Method Summary collapse

Instance Method Details

#to_yaml(opts = {}) ⇒ Object



349
350
351
352
353
# File 'lib/yaml/rubytypes.rb', line 349

def to_yaml( opts = {} )
	YAML::quick_emit( self, opts ) do |out|
           out.scalar( "tag:yaml.org,2002:timestamp", self.to_s, :plain )
       end
end