Exception: Exception
- Defined in:
- lib/yaml/rubytypes.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) taguri
108 |
# File 'lib/yaml/rubytypes.rb', line 108 def taguri; "!ruby/exception:#{self.class}"; end |
- (Object) to_yaml(output = nil)
100 101 102 103 104 105 106 |
# File 'lib/yaml/rubytypes.rb', line 100 def to_yaml(output = nil) YAML::quick_emit(output) do |out| out.map(taguri, to_yaml_style) do |map| map.add('message', ) end end end |