NAME

Rit::Base::Constants

SYNOPSIS

  use Rit::Base::Constants qw( $C_business_persona );

  $label = $C_business_persona->loc;

import

  use Constants qw( $C_class ... )

The use statement calls import()

on_startup

new

hurry_init

find

  Rit::Base::Constants->find(\%query, \%args)

Adds the criterion { label_exist => 1 } and calls Rit::Base::Resource/find

get_set

  Rit::Base::Constants->get_set( $label )

As get(), but creates the node if not existing.

get_by_id

  Rit::Base::Constants->get_by_id( $id )

Returns:

a Rit::Base::Constant object or Rit::Base::Undef

get

  Rit::Base::Constants->get( $label )

Returns:

a Rit::Base::Resource

Exceptions:

croaks if constant doesn't exist

AUTOLOAD

SEE ALSO

Para::Frame, Rit::Base