Method: Cisco::ConfigParser::Configuration#initialize
- Defined in:
- lib/cisco_node_utils/configparser_lib.rb
#initialize(config_str) ⇒ Configuration
Constructor for Configuration
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/cisco_node_utils/configparser_lib.rb', line 41 def initialize(config_str) unless config_str.kind_of? String fail ArgumentError, 'Argument is not a String.' end @configuration = {} @ordered_keys = [] @indent = '' parse(config_str) end |