Class: Inspec::Resources::PConfigFile

Inherits:
PConfig
  • Object
show all
Defined in:
lib/resources/parse_config.rb

Instance Attribute Summary

Attributes inherited from PConfig

#content

Instance Method Summary collapse

Methods inherited from PConfig

#method_missing, #params

Constructor Details

#initialize(path, opts = nil) ⇒ PConfigFile

Returns a new instance of PConfigFile.



108
109
110
111
# File 'lib/resources/parse_config.rb', line 108

def initialize(path, opts = nil)
  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

#to_sObject



113
114
115
# File 'lib/resources/parse_config.rb', line 113

def to_s
  "Parse Config File #{@conf_path}"
end