Class: Remap::Notice
- Inherits:
-
Dry::Interface
- Object
- Dry::Interface
- Remap::Notice
- Defined in:
- lib/remap/notice.rb,
lib/remap/notice/traced.rb,
lib/remap/notice/untraced.rb
Defined Under Namespace
Classes: Error, Traced, Untraced
Instance Method Summary collapse
- #exception ⇒ Error
- #inspect ⇒ Object (also: #to_s)
-
#to_hash ⇒ Hash
Hash representation of the notice.
Instance Method Details
#inspect ⇒ Object Also known as: to_s
17 18 19 |
# File 'lib/remap/notice.rb', line 17 def inspect "#<%s %s>" % [self.class, to_hash.formated] end |
#to_hash ⇒ Hash
Hash representation of the notice
25 26 27 |
# File 'lib/remap/notice.rb', line 25 def to_hash super.except(:backtrace).compact_blank end |