Class: PConfigFile

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

Instance Method Summary collapse

Methods inherited from PConfig

#method_missing, #parse_file, #read_content, #read_file

Constructor Details

#initialize(path, opts = nil) ⇒ PConfigFile

Returns a new instance of PConfigFile.



81
82
83
84
# File 'lib/resources/parse_config.rb', line 81

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 PConfig

Instance Method Details

#to_sObject



86
87
88
# File 'lib/resources/parse_config.rb', line 86

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