Class: Symbol
Overview
Reopen the core Symbol class to represent #inspect_lit.
Instance Method Summary collapse
-
#inspect_lit ⇒ String
Formats this symbol to look like a symbol literal so that object type will be inherently obvious when used in logging methods, etc.
Instance Method Details
#inspect_lit ⇒ String
Formats this symbol to look like a symbol literal so that object type will be inherently obvious when used in logging methods, etc.
13 14 15 |
# File 'lib/core_ext/symbol.rb', line 13 def inspect_lit %(:"#{self}") end |