lib/codebreaker/loader.rb in codebreaker_kub-0.1.9 vs lib/codebreaker/loader.rb in codebreaker_kub-0.2.1
- old
+ new
@@ -1,8 +1,10 @@
+# frozen_string_literal: true
+
module Codebreaker
module Loader
PATH = File.join(File.dirname(__FILE__), 'data/').freeze
- EXTENCTION = '.yml'.freeze
+ EXTENCTION = '.yml'
def self.load(file_name)
file_name = PATH + file_name + EXTENCTION.to_s
if File.exist?(file_name)
YAML.load_file(file_name)
else