3 ms·
You could do what I’ve done with MIME::Types, which is make the class-level methods work against an instance. Most people use MIME::Types as the class-level met
by halostatue 12y ago
You could do what I’ve done with MIME::Types, which is make the class-level methods work against an instance. Most people use MIME::Types as the class-level methods, but it is possible to instantiate and use it otherwise.
- iamwil 12y agoBy "work against an instance", do you mean that you instantiate the instance in the class-level methods? So at most, the class-level methods are just wrappers around the instance methods, emulating a singleton?
- halostatue 12y agoYes. Sorry I didn’t see this earlier, but that’s exactly it.