YAML::PrivateType (Class)

In: yaml/types.rb
Parent: Object

Default private type

Methods

new   to_yaml  

Attributes

type_id  [RW] 
value  [RW] 

Public Class methods

[Source]

# File yaml/types.rb, line 12
                def initialize( type, val )
                        @type_id = type; @value = val
                end

Public Instance methods

[Source]

# File yaml/types.rb, line 15
                def to_yaml( opts = {} )
                        YAML::quick_emit( self.object_id, opts ) { |out|
                                out << " !!#{@type_id}"
                                value.to_yaml( :Emitter => out )
                        }
                end

[Validate]