Open
Description
extensions.rb defines the method unqualified_name
on the Class object. In insolation, this is fine, however if Bane is used by other libraries (say, in integration tests) this method name might clash with another implementation of unqualified_name
. In particular, I'm concerned about ActiveSupport which is widely used.
To use a name which might be more familiar to ActiveSupport, we could define
class.demodulize_name
(which would be defined on Module)
This uses a name which is probably familiar to anyone who uses ActiveSupport, since it has a 'demodulize' method on String.
As a bonus, 'demodulize_name' is also unused in ActiveSupport -- and didn't turn up any Google search results when we looked today.
Metadata
Metadata
Assignees
Labels
No labels