From 19e6dec579cf0c0cf77e087547a379c27f1c3e2a Mon Sep 17 00:00:00 2001 From: Keith Bennett Date: Thu, 24 Oct 2019 13:19:43 +0700 Subject: [PATCH] #386 - Fix calls, pass opts on to called method. --- lib/json/common.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/json/common.rb b/lib/json/common.rb index d2f6d7b1..bc0212af 100644 --- a/lib/json/common.rb +++ b/lib/json/common.rb @@ -183,13 +183,13 @@ def parse!(source, opts = {}) # Parses the content of a file # See parse method documentation for more information. def load_file(filespec, opts = {}) - parse(File.read(filespec)) + parse(File.read(filespec), opts) end # Parses the content of a file # See parse! method documentation for more information. def load_file!(filespec, opts = {}) - parse!(File.read(filespec)) + parse!(File.read(filespec), opts) end