Class Exception
In: yaml/rubytypes.rb
Parent: Object

Methods

to_yaml   yaml_new  

Public Class methods

[Source]

     # File yaml/rubytypes.rb, line 119
119:     def Exception.yaml_new( klass, tag, val )
120:         o = YAML.object_maker( klass, { 'mesg' => val.delete( 'message' ) } )
121:         val.each_pair do |k,v|
122:             o.instance_variable_set("@#{k}", v)
123:         end
124:         o
125:     end

Public Instance methods

[Source]

     # File yaml/rubytypes.rb, line 126
126:         def to_yaml( opts = {} )
127:                 YAML::quick_emit( object_id, opts ) do |out|
128:             out.map( taguri, to_yaml_style ) do |map|
129:                 map.add( 'message', message )
130:                                 to_yaml_properties.each do |m|
131:                     map.add( m[1..-1], instance_variable_get( m ) )
132:                 end
133:             end
134:         end
135:         end

Search

Google

Ruby API Docs

Links