Class: Remap::Notice
- Inherits:
-
Dry::Concrete
- Object
- Dry::Concrete
- Remap::Notice
- Defined in:
- lib/remap/notice.rb,
lib/remap/notice/error.rb,
lib/remap/notice/fatal.rb,
lib/remap/notice/ignore.rb
Defined Under Namespace
Classes: Error
Constant Summary collapse
- Fatal =
Class.new(Error)
- Ignore =
Class.new(Error)
Instance Method Summary collapse
- #inspect ⇒ String (also: #to_s)
-
#to_hash ⇒ Hash
Hash representation of the notice.
Instance Method Details
#inspect ⇒ String Also known as: to_s
12 13 14 |
# File 'lib/remap/notice.rb', line 12 def inspect "#<%s %s>" % [self.class, to_hash.formatted] end |
#to_hash ⇒ Hash
Hash representation of the notice
20 21 22 |
# File 'lib/remap/notice.rb', line 20 def to_hash super.except(:backtrace).compact_blank end |