Class: Unparser::Emitter::Literal::Primitive::Inspect
- Inherits:
-
Unparser::Emitter::Literal::Primitive
- Object
- Unparser::Emitter::Literal
- Unparser::Emitter::Literal::Primitive
- Unparser::Emitter::Literal::Primitive::Inspect
- Defined in:
- lib/tweezer/unparser/emitter/literal/primitive/inspect.rb
Instance Method Summary collapse
Instance Method Details
#dispatch ⇒ Object
6 7 8 9 10 11 |
# File 'lib/tweezer/unparser/emitter/literal/primitive/inspect.rb', line 6 def dispatch return write_inspect unless value.is_a? String return write_inspect if value.include? "'" write("'#{value}'") end |