Sha256: 866213e27d8eca26c1ba248e98ff8ce6ac61d22a29de395ded9d7f2c3530f9cf
Contents?: true
Size: 414 Bytes
Versions: 2
Compression:
Stored size: 414 Bytes
Contents
class Symbol # Formats this symbol to look like a symbol literal so that object type will # be inherently obvious when used in logging methods, etc. # # @return [String] a symbol literal representation of this object # # @example # :test.inspect_lit # => ":\"test\"" (or ':"test"') # :"ta-da!".inspect_lit # => ":\"ta-da!\"" (or ':"ta-da!"') def inspect_lit %(:"#{to_s}") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
object_identifier-0.1.1 | lib/object_identifier/core_ext/symbol.rb |
object_identifier-0.1.0 | lib/object_identifier/core_ext/symbol.rb |