Sha256: 5806181eb8a313ef565b1b28044e4bc7bde2749a4e7165794d5569df8aedc2a5

Contents?: true

Size: 383 Bytes

Versions: 18

Compression:

Stored size: 383 Bytes

Contents

require_relative 'loader'
require 'json'

module Prmd #:nodoc:
  module MultiLoader #:nodoc:
    # JSON MultiLoader
    module Json
      extend Prmd::MultiLoader::Loader

      # @see (Prmd::MultiLoader::Loader#load_data)
      def self.load_data(data)
        ::JSON.load(data)
      end

      # register this loader for all .json files
      extensions '.json'
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
prmd-0.14.0 lib/prmd/multi_loader/json.rb
prmd-0.13.0 lib/prmd/multi_loader/json.rb
prmd-0.12.0 lib/prmd/multi_loader/json.rb
prmd-0.11.11 lib/prmd/multi_loader/json.rb
prmd-0.11.10 lib/prmd/multi_loader/json.rb
prmd-0.11.9 lib/prmd/multi_loader/json.rb
prmd-0.11.8 lib/prmd/multi_loader/json.rb
prmd-0.11.7 lib/prmd/multi_loader/json.rb
prmd-0.11.6 lib/prmd/multi_loader/json.rb
prmd-0.11.5 lib/prmd/multi_loader/json.rb
prmd-0.11.4 lib/prmd/multi_loader/json.rb
prmd-0.11.3 lib/prmd/multi_loader/json.rb
prmd-0.11.2 lib/prmd/multi_loader/json.rb
prmd-0.11.1 lib/prmd/multi_loader/json.rb
prmd-0.11.0 lib/prmd/multi_loader/json.rb
prmd-0.10.0 lib/prmd/multi_loader/json.rb
prmd-0.9.0 lib/prmd/multi_loader/json.rb
prmd-0.8.0 lib/prmd/multi_loader/json.rb