Sha256: 463c2bc9096ebc2e40d6a25187efa5e29227f7a79d06c14cbc08e221b46b7218
Contents?: true
Size: 627 Bytes
Versions: 176
Compression:
Stored size: 627 Bytes
Contents
require 'pp' module Tins module P private # Raise a runtime error with the inspected objects +objs+ (obtained by # calling the #inspect method) as their message text. This is useful for # quick debugging. def p!(*objs) raise((objs.size < 2 ? objs.first : objs).inspect) end # Raise a runtime error with the inspected objects +objs+ (obtained by # calling the #pretty_inspect method) as their message text. This is useful # for quick debugging. def pp!(*objs) raise("\n" + (objs.size < 2 ? objs.first : objs).pretty_inspect.chomp) end end end require 'tins/alias'
Version data entries
176 entries across 158 versions & 9 rubygems