From: Dave Rolsky Date: Tue, 23 Jun 2009 21:14:22 +0000 (-0500) Subject: add some more slies on object construction, make ol and li style the same X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7205c6ef463bf6cce623bf72646fbe5915023115;p=gitmo%2Fmoose-presentations.git add some more slies on object construction, make ol and li style the same --- diff --git a/moose-class/slides/index.html b/moose-class/slides/index.html index e549346..4dca048 100644 --- a/moose-class/slides/index.html +++ b/moose-class/slides/index.html @@ -925,6 +925,30 @@ sub BUILD {
+

Object Construction a la Moose

+ +
Person->new(@_)
+ +
    +
  1. Calls Person->BUILDARGS(@_) to turn @_ into a hashref
  2. +
  3. Blesses a reference
  4. +
  5. Populates attributes based on the hashref from #1
  6. +
  7. Calls $new_object->BUILDALL($constructor_args) +
    ... which calls all BUILD methods
  8. +
  9. Returns the object
  10. +
+
+ +
+

The Object is Oqaque

+ + +
+ +

DEMOLISH