Skip to content

Instantly share code, notes, and snippets.

@Getty
Created February 11, 2011 22:13
Show Gist options
  • Select an option

  • Save Getty/823148 to your computer and use it in GitHub Desktop.

Select an option

Save Getty/823148 to your computer and use it in GitHub Desktop.
package Sugar::Cane;
# ABSTRACT: EXPERIMENTAL The base for a good sugar
use Moose ();
use Moose::Exporter;
use Data::Printer;
Moose::Exporter->setup_import_methods(
as_is => [ 'p' ],
with_meta => [ 'has' ],
also => [ 'Moose' ],
);
sub has { warn "Sugar::Cane::has"; Moose::has(@_); }
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment