[ruby-cvs:66738] ko1:r59560 (trunk): Define Thread#to_s (as Thread#inspect) and make alias `inspect` as `to_s`.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Thu Aug 10 12:20:39 JST 2017


ko1	2017-08-10 12:20:39 +0900 (Thu, 10 Aug 2017)

  New Revision: 59560

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59560

  Log:
    Define Thread#to_s (as Thread#inspect) and make alias `inspect` as `to_s`.
    
    * thread.c: "Thread#to_s" is not defined without any reason. So this fix
      define "Thread#to_s" which returns a string with some thread information.
      Also this fix makes alias "inspect" which refers "to_s". This manner is
      same as other objects.

  Modified files:
    trunk/thread.c


More information about the ruby-cvs mailing list