Sha256: 5f8f1f10a7f5963611b0bb1b86d398aeed103c9dc6b17fe24300be8f40b9daaa
Contents?: true
Size: 323 Bytes
Versions: 6
Compression:
Stored size: 323 Bytes
Contents
module Gumdrop::Data class YAMLDocDataProvider < Provider extension :yamldoc def available? require 'yaml' true rescue LoadError false end def data_for(filepath) yamldoc= Gumdrop::Util::YamlDoc.new File.read(filepath), true supply_data yamldoc.data end end end
Version data entries
6 entries across 6 versions & 1 rubygems