Exception: Exception
- Defined in:
- lib/icss/serialization/zaml.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.yaml_new(klass, tag, val) ⇒ Object
276 277 278 279 280 281 282 |
# File 'lib/icss/serialization/zaml.rb', line 276 def self.yaml_new( klass, tag, val ) o = YAML.object_maker( klass, {} ).exception(val.delete( 'message')) val.each_pair do |k,v| o.instance_variable_set("@#{k}", v) end o end |