Rit::Base::Constants
use Rit::Base::Constants qw( $C_business_persona ); $label = $C_business_persona->loc;
use Constants qw( $C_class ... )
The use statement calls import()
Rit::Base::Constants->find(\%query, \%args)
Adds the criterion { label_exist => 1 } and calls Rit::Base::Resource/find
Rit::Base::Constants->get_set( $label )
As get(), but creates the node if not existing.
Rit::Base::Constants->get_by_id( $id )
Returns:
a Rit::Base::Constant object or Rit::Base::Undef
Rit::Base::Constants->get( $label )
Returns:
Exceptions:
croaks if constant doesn't exist