lib/vindetta/standard/iso3779.rb in vindetta-0.26.0 vs lib/vindetta/standard/iso3779.rb in vindetta-0.27.0
- old
+ new
@@ -18,10 +18,14 @@
def self.vis
@vis ||= yml.fetch("vis")
end
def self.yml
- @yml ||= YAML.load_file("lib/vindetta/standard/iso3779.yml")
+ @yml ||= begin
+ File.open(File.expand_path("iso3779.yml", __dir__)) do |file|
+ YAML.load_file(file)
+ end
+ end
end
private_class_method :yml
end
end