class Lurker::Json::Orderer

Constants

EXTENSIONS

Public Class Methods

reorder(schema) click to toggle source
# File lib/lurker/json/orderer.rb, line 7
def reorder(schema)
  new.reorder(schema)
end

Public Instance Methods

reorder(schema) click to toggle source
# File lib/lurker/json/orderer.rb, line 12
def reorder(schema)
  extensions = schema.delete(EXTENSIONS).try(:reorder!)
  schema.reorder!
  schema[EXTENSIONS] = extensions
end