SPVM::B...riptInfo(3)
π Name π
Okay bestie, you're on the SPVM::B...riptInfo(3) page from the User Contributed Perl Documentation, and this whole thing is about SPVM::Builder::ScriptInfo - Script Information. It's giving βutility class with main character energyβ for SPVM script info. π
β¨ Description β¨
The SPVM::Builder::ScriptInfo class has methods to manipulate SPVM script information. Lowkey iconic, no cap. π¦
πΈ Usage πΈ
Here's the vibe:
my $config_info = SPVM::Builder::ScriptInfo->new(class_name => "Foo");
π Class Methods π
π new π
my $config_info = SPVM::Builder::ScriptInfo->new(%options);
Creates an SPVM::Builder::ScriptInfo object given options %options, and returns it. Obsessed with a constructor that just does the thing. β¨
The class specified by the "class_name" option or "script_name" option is compiled and the runtime is generated. Yes, literally compiled and runtime-generated β not me being dramatic. π
The "class_name" option or "script_name" option must be defined. Like, actually defined. π«Ά
Options:
"class_name"β A class name. π"script_name"β A script name. π¦
Exceptions:
- The
"class_name"option or the"script_name"option must be defined. Otherwise, an exception is thrown. π
π¦ Instance Methods π¦
π get_class_names π
my $class_names = $config_info->get_class_names;
Returns the names of all classes, interfaces, and multi-numeric types except for anon classes and anon classes generated by anon methods. Periodt β those anon classes are not invited to this list. π
π has_config_file π
my $has_config_file = $config_info->has_config_file($class_name);
If the class given by the class name has a config file, returns 1, otherwise returns 0. A little yes/no vibe check. β
Exceptions:
- The class name
$class_namemust be defined. Otherwise, an exception is thrown. π
π§ is_resource_loader π§
my $is_resource_loader = $config_info->is_resource_loader($class_name);
If the class given by the class name $class_name is a class that load resources, returns 1, otherwise returns 0. Resource-loader energy detected? π
Exceptions:
- The class name
$class_namemust be defined. Otherwise, an exception is thrown. π
π get_config_file π
my $config_file = $config_info->get_config_file($class_name);
Returns the file path of the config for the class given by the class name $class_name. It's giving βwhere is the config file, bestie?β π₯
Exceptions:
- The class name
$class_namemust be defined. Otherwise, an exception is thrown. π«Ά - The config file for the class
"%s"is not found. Otherwise, an exception is thrown. π
π get_config_content π
my $config_content = $config_info->get_config_content($class_name);
Returns the content of the config for the class given by the class name $class_name. The actual content, not just the path β slay. β¨
Exceptions:
Exceptions thrown by get_config_file method could be thrown. Yep, that drama could absolutely show up here too. π
β get_config β
my $config = $config_info->get_config($class_name);
Returns a config object for the class given by the class name $class_name. Object mode: activated. π
Exceptions:
Exceptions thrown by get_config_file method could be thrown. Same exception energy, no cap. π
π«Ά Copyright & License π«Ά
Copyright (c) 2023 Yuki Kimoto
MIT License
Bye bestie π β this page's footer energy is perl v5.42.2, dated 2026-02-03, with the manual name SPVM::B...riptInfo(3). πβ¨
π¦ where this page comes from
- alpine 3.24: spvm-doc 0.990125-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms