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.
Instance Method Summary collapse
-
#in_quotes ⇒ String
(also: #with_quotes)
Adds quotable functionality using inspect representation.
Instance Method Details
#in_quotes ⇒ String Also known as: with_quotes
Adds quotable functionality using inspect representation
Provides methods for wrapping an object’s inspection representation in double quotes.
50 51 52 |
# File 'lib/everythingrb/extensions/quotable.rb', line 50 def in_quotes %("#{inspect}") end |