PM::Configuration¶
Global configuration for PM behavior. Accessed via PM.config or PM.configure.
Source¶
lib/pm/configuration.rb
Attributes¶
| Attribute | Type | Default | Description |
|---|---|---|---|
prompts_dir |
String | '' |
Prepended to relative file paths in PM.parse |
shell |
Boolean | true |
Default shell expansion setting for new parses |
erb |
Boolean | true |
Default ERB rendering setting for new parses |
All attributes have both getter and setter methods (attr_accessor).
Methods¶
initialize¶
Creates a new Configuration with default values by calling reset!.
reset! → nil¶
Restores all attributes to their defaults:
Usage¶
Block Configuration¶
Direct Access¶
Override Behavior¶
Per-file YAML metadata always overrides the global setting. If a file has shell: true in its front-matter, shell expansion runs even when PM.config.shell is false.
The global setting acts as the default when a file does not specify the value.