Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace can be ambiguous #16

Open
granolocks opened this issue Apr 2, 2014 · 0 comments
Open

Namespace can be ambiguous #16

granolocks opened this issue Apr 2, 2014 · 0 comments

Comments

@granolocks
Copy link
Contributor

This is verbatim from @iliabylich on this pull request:

What do you expect from method namespace for classes with same name defined in different modules?

For example:

require 'snapi'

module A
 class ClassName
    include Snapi::Capability
  end
end

p A::ClassName.namespace
p Snapi.capabilities

module B
 class ClassName
    include Snapi::Capability
  end
end

p B::ClassName.namespace
p Snapi.capabilities

Output:

:class_name
{:class_name=>A::ClassName}
:class_name
{:class_name=>B::ClassName}

Looks like a bug.

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

No branches or pull requests

1 participant