Skip to content

Instantly share code, notes, and snippets.

@stevan
Created October 21, 2011 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevan/1304193 to your computer and use it in GitHub Desktop.
Save stevan/1304193 to your computer and use it in GitHub Desktop.
::Class.meta.add_method('BUILDALL' => method (%params) returns Void {
my Dispatcher $dispatcher = $self.meta.dispatcher(:descendant);
for WALKMETH($dispatcher, 'BUILD') -> Method $method {
$method.($?SELF, %params);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment