Method: Periphery::JsonParser#parse
- Defined in:
- lib/periphery/json_parser.rb
#parse(string) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/periphery/json_parser.rb', line 9 def parse(string) JSON.parse(string).map do |entry| path, line, column = parse_location(entry['location']) = (*entry.slice('name', 'kind', 'hints', 'modules').values) ScanResult.new(path, line, column, ) end end |