Sha256: fffa0c4959984ea5de3269fc5db467aef9c472a7009b8881901274855c0b4bec

Contents?: true

Size: 440 Bytes

Versions: 6

Compression:

Stored size: 440 Bytes

Contents

# frozen_string_literal: true

# @api private
# @since 0.5.0
class Qonfig::Loaders::JSON < Qonfig::Loaders::Basic
  class << self
    # @param data [String]
    # @return [Object]
    #
    # @api private
    # @since 0.5.0
    def load(data)
      ::JSON.parse(data, max_nesting: false, allow_nan: true)
    end

    # @return [Object]
    #
    # @api private
    # @since 0.5.0
    def load_empty_data
      load('{}')
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
qonfig-0.16.0 lib/qonfig/loaders/json.rb
qonfig-0.15.0 lib/qonfig/loaders/json.rb
qonfig-0.14.0 lib/qonfig/loaders/json.rb
qonfig-0.13.0 lib/qonfig/loaders/json.rb
qonfig-0.12.0 lib/qonfig/loaders/json.rb
qonfig-0.11.0 lib/qonfig/loaders/json.rb