Skip to content

Commit

Permalink
ruby#386 - Fix calls, pass opts on to called method.
Browse files Browse the repository at this point in the history
  • Loading branch information
keithrbennett committed Jun 25, 2020
1 parent b2de616 commit 19e6dec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/json/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 19e6dec

Please sign in to comment.