---
name: "Lire::Config::Plugin"
section: "3pm"
platform: "linux"
package: "lire"
version: "2.1.1-8"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Lire::Config::Plugin"
---

# Lire::Config::Plugin(3pm)

Value object for plugin configuration.

## NAME

Lire::Config::Plugin - Value object for plugin configuration.

## SYNOPSIS

```
  use Lire::Config::Plugin;
```

## DESCRIPTION

This configuration object hold the name of a selected plugin as well as its options.

### get\_plugin()

Returns the currently selected plugin.

### set\_plugin( $plugin )

Changes the selected plugin. If the selected plugin is changed, a new property set will be created from the plugin's defined properties.

### get\_properties\_spec()

Returns the TypeSpec that is used to specify the plugin's properties. This method will return an empty RecordSpec when the plugin didn't define any properties. One can also use the **has\_properties()** method to check if the Plugin defined configuration properties.

### has\_properties()

Returns a boolean value indicating whether the current plugin is configurable.

### get\_properties()

Returns the Lire::Config::Dictionary object which hold the plugin configuration.

### as\_value()

Returns an hash reference with two keys : 'plugin' which contains the selected plugin and 'properties' which is an hash reference containing the plugin's properties.

### get( $name )

Delegates to the Dictionary which contains the plugin's properties.

### set( $name, $value )

Delegates to the Dictionary which contains the plugin's properties.

### is\_set( $name )

Delegates to the Dictionary which contains the plugin's properties.
