
Fey::Object::Policy - An object representing a specific policy

This class provides the non-sugar half of Fey::ORM::Policy. It's probably not interesting unless you're interested in the guts of how Fey::ORM works.

This class accepts the following methods:
Stores a transform as declared in Fey::ORM::Policy
Given a Fey::Column,
returns the first transform (as a hash reference) for which the matching sub returns true.
Returns all of the transforms for the policy.
Returns the naming sub for has_one() methods.
Defaults to:
sub { lc $_[0]->name() }
Sets the naming sub for has_one() methods.
Returns the naming sub for has_many() methods. Defaults to:
sub { lc $_[0]->name() }
Sets the naming sub for has_many() methods.

Dave Rolsky, <autarch@urth.org>

See Fey::ORM for details.

Copyright 2006-2009 Dave Rolsky, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module.