class Gumdrop::Data::YAMLandJSONDataProvider
Public Instance Methods
available?()
click to toggle source
# File lib/gumdrop/data_providers/yaml_and_json.rb, line 6 def available? require 'yaml' true rescue LoadError false end
data_for(filepath)
click to toggle source
# File lib/gumdrop/data_providers/yaml_and_json.rb, line 13 def data_for(filepath) supply_data YAML.load_file(filepath) end