Method: Confswap::BashParser.parse
- Defined in:
- lib/confswap/bash_parser.rb
.parse(text) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/confswap/bash_parser.rb', line 13 def self.parse text parsed_text = text parsed_text = parse_as_array text if text.start_with? "[" parsed_text = parse_as_object text if text.start_with? "{" parsed_text end |