Sha256: 0280fe219363aa6f1879068bd1a35659fff1c45be5fceb3514b060ef1d7d61e2

Contents?: true

Size: 245 Bytes

Versions: 2

Compression:

Stored size: 245 Bytes

Contents

module Gumdrop::Data
  class YAMLDocDataProvider < YAMLandJSONDataProvider

    extension :yamldoc

    def data_for(filepath)
      yamldoc= Gumdrop::Util::YamlDoc.new File.read(filepath), true
      supply_data yamldoc.data
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gumdrop-1.0.1 lib/gumdrop/data_providers/yamldoc.rb
gumdrop-1.0.0 lib/gumdrop/data_providers/yamldoc.rb