Class: Purist::Handler::Raise

Inherits:
Base
  • Object
show all
Defined in:
lib/purist/handler.rb

Instance Method Summary collapse

Instance Method Details

#call(trace_point) ⇒ Object



18
19
20
21
22
# File 'lib/purist/handler.rb', line 18

def call(trace_point)
  raise Purist::Errors::PurityViolationError.new(
    trace_point: TracePointSlice.call(trace_point)
  )
end