Sha256: 1e5c35c9283f025276d92726302e9f1bce86c4125665c18b54b301407f958122

Contents?: true

Size: 400 Bytes

Versions: 18

Compression:

Stored size: 400 Bytes

Contents

require_relative 'loader'
require 'yaml'

module Prmd #:nodoc:
  module MultiLoader #:nodoc:
    # YAML MultiLoader
    module Yaml
      extend Prmd::MultiLoader::Loader

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

      # register this loader for all .yaml and .yml files
      extensions '.yaml', '.yml'
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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