Module: Pry::TooSafeException

Defined in:
lib/pry/exceptions.rb

Overview

Catches SecurityErrors if $SAFE is set

Class Method Summary collapse

Class Method Details

.===(exception) ⇒ Object



28
29
30
# File 'lib/pry/exceptions.rb', line 28

def self.===(exception)
  $SAFE > 0 && SecurityError === exception
end