Method: Frameit::ConfigParser#parse
- Defined in:
- frameit/lib/frameit/config_parser.rb
#parse(data) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'frameit/lib/frameit/config_parser.rb', line 15 def parse(data) begin @data = JSON.parse(data) rescue => ex UI.error(ex.) UI.user_error!("Invalid JSON file at path '#{@path}'. Make sure it's a valid JSON file") end self end |