From: Dave Rolsky <autarch@urth.org>
Date: Sat, 17 Mar 2012 15:46:27 +0000 (-0500)
Subject: Add docs for CMOP::Method::Overload
X-Git-Tag: 2.0500~15
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bdd1acbdd2d351b1d689969a405a6a89c4473b93;p=gitmo%2FMoose.git

Add docs for CMOP::Method::Overload
---

diff --git a/lib/Class/MOP/Method/Overload.pm b/lib/Class/MOP/Method/Overload.pm
index 91a3311..3711060 100644
--- a/lib/Class/MOP/Method/Overload.pm
+++ b/lib/Class/MOP/Method/Overload.pm
@@ -44,3 +44,32 @@ sub _new {
 }
 
 1;
+
+# ABSTRACT: Method Meta Object for methods which implement overloading
+
+__END__
+
+=pod
+
+=head1 DESCRIPTION
+
+This is a L<Class::MOP::Method> subclass which represents methods that
+implement overloading.
+
+=head1 METHODS
+
+=over 4
+
+=item B<< Class::MOP::Method::Overload->wrap($metamethod, %options) >>
+
+This is the constructor. The options accepted are identical to the ones
+accepted by L<Class::MOP::Method>, except that it also required an C<operator>
+parameter, which should be an operator as defined by the L<overload> pragma.
+
+=item B<< $metamethod->operator >>
+
+This returns the operator that was passed to new.
+
+=back
+
+=cut