ruby-hacking-guide / ruby-hacking-guide.github.com

Ruby Hacking Guide Translation
http://ruby-hacking-guide.github.io/
318 stars 52 forks source link

Update minimum.textile #44

Closed kamiye closed 7 years ago

kamiye commented 7 years ago

modcls.rb

class Cls def test() return "class" end end

module Mod def test() return "module" end end

class C < Cls include Mod end

p(B.new().test()) # "class"? "module"? #It should be C.new() instead of B.new()