Handle the case where $instance ends up resolving to a class name, not
authorDave Rolsky <autarch@urth.org>
Mon, 1 Sep 2008 22:41:56 +0000 (22:41 +0000)
committerDave Rolsky <autarch@urth.org>
Mon, 1 Sep 2008 22:41:56 +0000 (22:41 +0000)
commitcbeacd38c90812d602c262cb67dec8f128061be9
tree05ddb7dec3eed9b8e0bcea8e74d00ef78ef125ca
parent3da6fda87aeb051907be3b9c5e8f9d63fe454b00
Handle the case where $instance ends up resolving to a class name, not
an object, in _inline_check_lazy.

This is a bit of a hack, but the whole immutable thing is a giant
hack, so I don't think it's too bad.

Alternately, we could add a new _inline_class_name method and just
call that, and I could override it for class attributes.
lib/Moose/Meta/Method/Accessor.pm