Method: StandardError#attributes
- Defined in:
- lib/coaster/core_ext/standard_error.rb
#attributes ⇒ Object Also known as: attr
80 81 82 83 84 85 86 87 |
# File 'lib/coaster/core_ext/standard_error.rb', line 80 def attributes return @attributes if defined?(@attributes) @attributes = HashWithIndifferentAccess.new if cause && cause.respond_to?(:attributes) && cause.attributes.is_a?(Hash) @attributes = @attributes.merge(cause.attributes) end @attributes end |