From 1b57c0a04d3865d6a0a9a879e23e195c92cfdcd8 Mon Sep 17 00:00:00 2001 From: Saf Date: Sun, 30 Aug 2020 12:53:04 -0700 Subject: [PATCH] Linted opcodes.rb --- lib/n65/opcodes.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/n65/opcodes.rb b/lib/n65/opcodes.rb index 238f331..e1bb7c5 100644 --- a/lib/n65/opcodes.rb +++ b/lib/n65/opcodes.rb @@ -1,9 +1,7 @@ +# frozen_string_literal: true + require 'yaml' module N65 - - ## Load OpCode definitions into this module - MyDirectory = File.expand_path(File.dirname(__FILE__)) - OpCodes = YAML.load_file("#{MyDirectory}/../../data/opcodes.yaml") - + OpCodes = YAML.load_file(File.join(__dir__, '../../data/opcodes.yaml')) end