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