Skip to content

Conversation

@kamiye
Copy link
Contributor

@kamiye kamiye commented Dec 18, 2016

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()

Copy link
Member

@markburns markburns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@markburns markburns merged commit b51d08b into ruby-hacking-guide:master Dec 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants