raise ArgumentError, very_large_hash.inspect
s = ''
PP::pp very_large_hash, s
raise ArgumentError, s
class Object
def pretty s = ''
autoload :PP, 'pp'
PP::pp self, s
s
end
end
s = [].methods require 'pp' s.methods - s s.pretty_print_inspect
s = '' PP::pp very_large_hash, s raise ArgumentError, s
can be described as:
raise ArgumentError, PP::pp(very_large_hash, '')
Note that pretty_print_inspect doesn't solve the problem because it is designed to use as inspect using pretty_print.
Back to RCRchive.
RCR Submission page and RCRchive powered by Ruby, Apache, RuWiki (modified), and RubLog