Project

General

Profile

« Previous | Next » 

Revision 37424

  • 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.