Sha256: a7c63ff213bb16aed7e8f9a04fe3955e31d89eefccabc3ba781873d50c9c62bf

Contents?: true

Size: 740 Bytes

Versions: 1

Compression:

Stored size: 740 Bytes

Contents

#                                                                          
# File 'yaml.rb' created on 18 ago 2008 at 14:56:12.                    
#
# See 'dokkit.rb' or +LICENSE+ for license information.                      
#                                                                          
# (C)2006-2008 Andrea Fazzi <andrea.fazzi@alca.le.it> (and contributors). 
#                                                                          

require 'yaml'

module Dokkit
  module Filter
    class YAML
      
      def initialize(document)
        @document = document
      end
      
      def filter(text)
        @document.configuration.recursive_merge! ::YAML::load(text)
        nil
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dokkit-0.5.0 lib/dokkit/filters/yaml.rb