Class: Remap::Notice

Inherits:
Dry::Concrete
  • Object
show all
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

Instance Method Details

#inspectString Also known as: to_s

Returns:

  • (String)


12
13
14
# File 'lib/remap/notice.rb', line 12

def inspect
  "#<%s %s>" % [self.class, to_hash.formatted]
end

#to_hashHash

Hash representation of the notice

Returns:

  • (Hash)


20
21
22
# File 'lib/remap/notice.rb', line 20

def to_hash
  super.except(:backtrace).compact_blank
end