call Class#inherited when Class.new(klass)
Merge pull request #1354 from wanabe/call-inherited

call Class#inherited when Class.new(klass)