Skip to content
Browse files

Output formatter should not assume the inspect value is mutable

This fixes MacRuby ticket #1190
  • Loading branch information...
1 parent c86dcb7 commit 06b90503cbe041935277634dd9884e447d997603 @ferrous26 ferrous26 committed Feb 19, 2012
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

0 comments on commit 06b9050

Please sign in to comment.
Something went wrong with that request. Please try again.