Method: Inspec::Resources::PConfig#initialize
- Defined in:
- lib/resources/parse_config.rb
#initialize(content = nil, useropts = nil) ⇒ PConfig
Returns a new instance of PConfig.
46 47 48 49 50 51 52 53 |
# File 'lib/resources/parse_config.rb', line 46 def initialize(content = nil, useropts = nil) @opts = {} @opts = useropts.dup unless useropts.nil? @files_contents = {} @content = content read_params unless @content.nil? end |