Sha256: ec45fd33e0903597b2e10d9e1987be186ac037d500c833b4871f6e2f3c99a6a2
Contents?: true
Size: 435 Bytes
Versions: 4
Compression:
Stored size: 435 Bytes
Contents
class String # Formats this string to look like a string literal so that object type will # be inherently obvious when used in logging methods, etc. # @return [String] a string literal representation of this object # @example # "test".inspect_lit # => "\"test\"" (or '"test"') # "1".inspect_lit # => "\"1\"" (or '"1"') # "12.3".inspect_lit # => "\"12.3\"" (or '"12.3"') def inspect_lit %("#{to_s}") end end
Version data entries
4 entries across 4 versions & 1 rubygems