Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/seeing_is_believing/customize_pp.rb
Instance Method Summary collapse
Instance Method Details
#pretty_print(pp) ⇒ Object
2 3 4 |
# File 'lib/seeing_is_believing/customize_pp.rb', line 2 def pretty_print(pp) pp.text inspect.gsub(/\\n(?!")/, '\n" +'+"\n"+'"') end |