Checking in changes prior to tagging of version 0.94.
[gitmo/Mouse.git] / lib / Mouse / Object.pm
index 74046c4..fea02ce 100644 (file)
@@ -1,6 +1,12 @@
 package Mouse::Object;
 use Mouse::Util qw(does dump meta); # enables strict and warnings
 # all the stuff are defined in XS or PP
+
+sub DOES {
+    my($self, $class_or_role_name) = @_;
+    return $self->isa($class_or_role_name) || $self->does($class_or_role_name);
+}
+
 1;
 __END__
 
@@ -10,7 +16,7 @@ Mouse::Object - The base object for Mouse classes
 
 =head1 VERSION
 
-This document describes Mouse version 0.76
+This document describes Mouse version 0.94
 
 =head1 METHODS
 
@@ -51,9 +57,9 @@ This is similar to C<isa> for object, but it checks the roles instead.
 =head2 C<< $object->dump($maxdepth) -> Str >>
 
 This is a handy utility for dumping an object with Data::Dumper.
-By default, the maximun depth is 3, to avoid making a mess.
+By default, the maximum depth is 3, to avoid making a mess.
 
-=head C<< $object->meta() -> MetaClass >>
+=head2 C<< $object->meta() -> MetaClass >>
 
 This is a method which provides access to the object's metaclass.