File.expand_path("../../../data/fonts_data.yml", __FILE__)
9 10 11 12 13 14
# File 'lib/google_font_url/utils.rb', line 9 def self.read_fonts unless File.exist?(DATA_PATH) raise "Data file not found: #{DATA_PATH}" end YAML.safe_load(File.read(DATA_PATH)) end