Conversation
lib/compositor/base.rb
Outdated
There was a problem hiding this comment.
Why would klazz.name be nil? in this case? Is that a legitimate use case?
There was a problem hiding this comment.
This was by design as I had to use an anonymous interstitial class which by design has a nil name. We could identify this use case in others ways (i.e. traverse up ancestors) but that seems kludgy as well. This whole problems i chicken-vs-egg here since the self.inherited hook is called before a class is evaluated. So i would say its use case is legitimate. All the tests will fails if if is not there. And we really should never really be including classes with nil name anyways. I modeled this concept a bit after camping/sequal examples.
Any other ideas (sans writing this to use modules instead of inheritance) would be great.
Override dsl node name via mimic method in class hierarchy. With tests and readme updates.