Project

General

Profile

« Previous | Next » 

Revision b14e2b44

Added by shugo (Shugo Maeda) over 12 years ago

  • object.c (rb_mod_to_s): Module#{to_s,inspect}, when invoked on
    a refinement, returns a string in the format #refinement:C@M,
    where C is a refined class and M is a module at which the refinemet
    is defined.

  • eval.c (rb_mod_refine): store information on a refinement for the
    above change.

  • test/ruby/test_refinement.rb: related test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e