Exception: Exception
- Defined in:
- lib/rbyaml.rb
Class Method Summary collapse
Class Method Details
.yaml_new(klass, tag, val) ⇒ Object
283 284 285 286 287 288 289 |
# File 'lib/rbyaml.rb', line 283 def Exception.yaml_new( klass, tag, val ) o = RbYAML.object_maker( klass, { 'mesg' => val.delete( 'message' ) } ) val.each_pair do |k,v| o.instance_variable_set("@#{k}", v) end o end |