debian-mirror-gitlab/lib/gitlab/json.rb
2020-04-22 19:07:51 +05:30

33 lines
494 B
Ruby

# frozen_string_literal: true
module Gitlab
module Json
class << self
def parse(*args)
adapter.parse(*args)
end
def parse!(*args)
adapter.parse!(*args)
end
def dump(*args)
adapter.dump(*args)
end
def generate(*args)
adapter.generate(*args)
end
def pretty_generate(*args)
adapter.pretty_generate(*args)
end
private
def adapter
::JSON
end
end
end
end