Sha256: a233604cf669defa0d8ce9de2d5359d2081ac3d962cece048fe3161d4430cf8a
Contents?: true
Size: 445 Bytes
Versions: 16
Compression:
Stored size: 445 Bytes
Contents
unless Object.const_defined? :PryExceptionExplorer $:.unshift File.expand_path '../../lib', __FILE__ require 'pry' end require 'pry-exception_explorer' PryExceptionExplorer.enabled = true PryExceptionExplorer.intercept(ArgumentError) def alpha name = "john" beta puts name end def beta x = "john" gamma(x) end def gamma(x) raise ArgumentError, "x must be a number!" if !x.is_a?(Numeric) puts "2 * x = #{2 * x}" end alpha
Version data entries
16 entries across 16 versions & 1 rubygems