SPVM::B...riptInfo(3)

πŸ“¦ version 0.990125, in alpine 3.24

πŸŽ€ 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_name must 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_name must 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_name must 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 (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