Class: Nice::JSONParser

Inherits:
Parser
  • Object
show all
Defined in:
lib/nice/diff/parser.rb

Instance Method Summary collapse

Instance Method Details

#parse_to_array(context) ⇒ Object



13
14
15
16
# File 'lib/nice/diff/parser.rb', line 13

def parse_to_array(context)
	context.key = 'Key'
	[JSON.parse(context.expected_file), JSON.parse(context.actual_file)]
end