UR::Object::Type::ModuleWriter(3pm) | User Contributed Perl Documentation | UR::Object::Type::ModuleWriter(3pm) |
UR::Object::Type::ModuleWriter - Helper module for UR::Object::Type responsible for writing Perl modules
Subroutines within this module actually live in the UR::Object::Type namespace; this module is just a convienent place to collect them. The Module Writer is used by the class updater system ((UR::Namespace::Command::Update::Classes and 'ur update classes) to add, remove and alter the Perl modules behind the classes within a Namespace.
$classobj->resolve_module_header_source();
Returns a string that represents a fully-formed class definition the the given class metaobject $classobj.
$classobj->resolve_class_description_perl()
Used by resolve_module_header_source(). This method inspects all the applicable properties of the class metaobject and builds up a string that gets inserted between the {...} of the class definition string.
$classobj->rewrite_module_header();
This method rewrites an existing Perl module file in place for the class metaobject, or creates a new file if one does not already exist.
UR::Object::Type, UR::Object::Type::Initializer
2022-01-17 | perl v5.32.1 |