Sha256: bb266edfc01b255f4dfd6fb3b94e57a36c3b7722f70d2ebbe9b5cf5a20128011
Contents?: true
Size: 446 Bytes
Versions: 2
Compression:
Stored size: 446 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
object_identifier-0.0.6 | lib/object_identifier/core_ext/string.rb |
object_identifier-0.0.5 | lib/object_identifier/core_ext/string.rb |