Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
String#succ will return subclass instance.
Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions class SubStr < String def value "value : " + self end end str = SubStr.new("abcd") assert_equal(SubStr, str.succ.class) puts :ok }}}
- Loading branch information