Skip to content

Instantly share code, notes, and snippets.

@schwern
Created June 27, 2010 23:45
Show Gist options
  • Select an option

  • Save schwern/455270 to your computer and use it in GitHub Desktop.

Select an option

Save schwern/455270 to your computer and use it in GitHub Desktop.
has "coerce" => (
is => 'rw',
lazy => 1,
reader => "should_coerce",
default => sub {
return 1 if shift->type_constraint->has_coercion;
return 0;
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment