In: |
yaml/rubytypes.rb
|
Parent: | Object |
# File yaml/rubytypes.rb, line 23 def to_yaml( opts = {} ) YAML::quick_emit( self.object_id, opts ) { |out| out.map( self.to_yaml_type ) { |map| to_yaml_properties.each { |m| map.add( m[1..-1], instance_variable_get( m ) ) } } } end