Sha256: 5d42d45d057e5e633957b2a797dc1a4cf91f274b0dfce1fe4505f078c428abd2
Contents?: true
Size: 367 Bytes
Versions: 11
Compression:
Stored size: 367 Bytes
Contents
module Lurker module Json class Orderer EXTENSIONS = 'extensions'.freeze class << self def reorder(schema) new.reorder(schema) end end def reorder(schema) extensions = schema.delete(EXTENSIONS).try(:reorder!) schema.reorder! schema[EXTENSIONS] = extensions end end end end
Version data entries
11 entries across 11 versions & 1 rubygems