Skip to content
Permalink
Browse files

Merge pull request #684 from krekoten/exception_to_s

Exception#to_s sends to_s to msg
  • Loading branch information
alex committed May 7, 2013
2 parents d8ba718 + f1d9ab5 commit 2249e92be92f0db20dfd4ba7af8fa6899991d948
Showing with 1 addition and 2 deletions.
  1. +0 −1 spec/tags/core/exception/to_s_tags.txt
  2. +1 −1 topaz/objects/exceptionobject.py

This file was deleted.

@@ -37,7 +37,7 @@ def method_initialize(self, space, w_msg=None):
if w_msg is space.w_nil or w_msg is None:
msg = space.getclass(self).name
else:
msg = space.str_w(w_msg)
msg = space.str_w(space.send(w_msg, "to_s"))
self.msg = msg

@classdef.method("to_s")

0 comments on commit 2249e92

Please sign in to comment.