Class: Inspec::Resources::PConfigFile
- Defined in:
- lib/inspec/resources/parse_config.rb
Instance Attribute Summary
Attributes inherited from PConfig
Instance Method Summary collapse
-
#initialize(path, opts = nil) ⇒ PConfigFile
constructor
A new instance of PConfigFile.
- #resource_id ⇒ Object
- #to_s ⇒ Object
Methods inherited from PConfig
Methods included from FileReader
Constructor Details
#initialize(path, opts = nil) ⇒ PConfigFile
Returns a new instance of PConfigFile.
110 111 112 113 114 |
# File 'lib/inspec/resources/parse_config.rb', line 110 def initialize(path, opts = nil) @path = path super(nil, opts) parse_file(@path) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Inspec::Resources::PConfig
Instance Method Details
#resource_id ⇒ Object
116 117 118 |
# File 'lib/inspec/resources/parse_config.rb', line 116 def resource_id @path || "parse_config_file" end |
#to_s ⇒ Object
120 121 122 |
# File 'lib/inspec/resources/parse_config.rb', line 120 def to_s "Parse Config File #{@conf_path}" end |