Object (Class)

In: yaml/rubytypes.rb
Parent: Object

Public Instance methods

[Source]

# File yaml/rubytypes.rb, line 14
    def is_complex_yaml?
        true
    end

[Source]

# 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

[Source]

# File yaml/rubytypes.rb, line 20
    def to_yaml_properties
        instance_variables.sort
    end

[Source]

# File yaml/rubytypes.rb, line 17
    def to_yaml_type
        "!ruby/object:#{self.class}"
    end

[Validate]