Module: AppleReceipt::NextStepParser
- Defined in:
- lib/apple_receipt/next_step_parser.rb
Overview
NextStepParser parses NextSTEP Plist data structures.
Class Method Summary collapse
Class Method Details
.parse(input) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/apple_receipt/next_step_parser.rb', line 10 def parse(input) # Transform JSON-like NextSTEP PList data into JSON raw_json = input.gsub(/;\n\t/, ",\n\t") .gsub(/\ =/, ':') .gsub(/;\n/, '') JSON.parse(raw_json) end |