[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Omaha.pm] if ($obj->can('get_busy') ...



-laugh-  I've got an attribute called 'busy'. I'm pretty sure there's a
rap song in my source code now...

if ($obj->can('get_busy') && $obj->get_busy == 0) {
   # Flag this as busy, return it...
   $obj->set_busy(1);
   return $obj;
}

j
calling the Black Eyed Peas