Commits

Toby Inkster  committed 1e1ba7c

remove references to Object::DOES

  • Participants
  • Parent commits ffc45aa

Comments (0)

Files changed (2)

File lib/Scalar/Does.pm

 
 =head1 SYNOPSIS
 
+  use Scalar::Does qw( -constants );
+  
   my $object = bless {}, 'Some::Class';
   
   does($object, 'Some::Class');   # true
   does($object, '%{}');           # true
-  does($object, 'HASH');          # true
-  does($object, 'ARRAY');         # false
+  does($object, HASH);            # true
+  does($object, ARRAY);           # false
 
 =head1 DESCRIPTION
 
 L<Role::Tiny>,
 L<Moo::Role>.
 
-=head2 Relationship to Object::DOES
-
-L<Object::DOES> provides a convenient way of overriding C<DOES> in your
-classes.
-
-  {
-    package Train;
-    use Object::DOES -role => [qw/ Transport /];
-    sub new { my ($class, %arg) = @_; bless \%arg, $class }
-  }
-  
-  my $thomas = Train->new;
-  does($thomas, 'Train');      # true
-  does($thomas, 'Transport');  # true
-
-See also:
-L<Object::DOES>.
-
 =head1 AUTHOR
 
 Toby Inkster E<lt>tobyink@cpan.orgE<gt>.

File meta/changes.pret

 			seealso RT#80434;
 			dcs:thanks cpan:DAMI;
 		];
+		item [
+			a dcs:Documentation, dcs:Removal;
+			label "Remove references to Object-DOES in documentation.";
+		];
 	].