Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Output formatter should not assume the inspect value is mutable

This fixes MacRuby ticket #1190
  • Loading branch information...
commit 06b90503cbe041935277634dd9884e447d997603 1 parent c86dcb7
@ferrous26 authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/irb/formatter.rb
View
3  lib/irb/formatter.rb
@@ -48,8 +48,7 @@ def prompt(context, ignore_auto_indent = false, level = nil)
def inspect_object(object)
if @inspect
result = object.respond_to?(:pretty_inspect) ? object.pretty_inspect : object.inspect
- result.strip!
- result
+ result.strip
else
minimal_inspect_object(object)
end
Please sign in to comment.
Something went wrong with that request. Please try again.