UR::Util - Collection of utility subroutines and methods


UR documentation  | view source Contained in the UR distribution.

Index


  • generate_readwrite_methods
      UR::Util->generate_readwrite_methods
      (
          some_scalar_property = 1,
          some_array_property = []
      );
    
    

    This method generates accessor/set methods named after the keys of its hash argument. The type of function generated depends on the default value provided as the hash key value. If the hash key is a scalar, a scalar method is generated. If the hash key is a reference to an array, an array method is generated.

    This method does not overwrite class methods that already exist.

    generate_readwrite_methods_override
      UR::Util->generate_readwrite_methods_override
      (
          some_scalar_property = 1,
          some_array_property = []
      );
    
    

    Same as generate_readwrite_function except that we force the functions into the namespace even if the function is already defined

    generate_readonly_methods
      UR::Util->generate_readonly_methods
      (
          some_scalar_property = 1,
          some_array_property = []
      );
    
    

    This method generates accessor methods named after the keys of its hash argument. The type of function generated depends on the default value provided as the hash key value. If the hash key is a scalar, a scalar method is generated. If the hash key is a reference to an array, an array method is generated.

    This method does not overwrite class methods that already exist.

  • NAME

    Top

    UR::Util - Collection of utility subroutines and methods

    DESCRIPTION

    Top

    This package contains subroutines and methods used by other parts of the infrastructure. These subs are not likely to be useful to outside code.


    UR documentation  | view source Contained in the UR distribution.