Module: Everythingrb::InspectQuotable
- Included in:
- Array, Data, FalseClass, Hash, NilClass, Numeric, OpenStruct, Range, Regexp, Struct, TrueClass
- Defined in:
- lib/everythingrb/extensions/quotable.rb
Overview
Adds quotable functionality using inspect representation
Provides methods for wrapping an object’s inspection representation in double quotes for debugging and error messages.
Instance Method Summary collapse
-
#in_quotes ⇒ String
(also: #with_quotes)
Returns the object’s inspection representation wrapped in double quotes.
Instance Method Details
#in_quotes ⇒ String Also known as: with_quotes
Returns the object’s inspection representation wrapped in double quotes
47 48 49 |
# File 'lib/everythingrb/extensions/quotable.rb', line 47 def in_quotes %("#{inspect}") end |