stdlib/json/0/json.rbs in rbs-3.6.0.pre.2 vs stdlib/json/0/json.rbs in rbs-3.6.0.pre.3

- old
+ new

@@ -978,9 +978,31 @@ # #<Admin:0x00000000064c41f8 # @attributes={"type"=>"Admin", "password"=>"0wn3d"}>} # def self?.load: (string | _JsonReadableIO | _JsonRead source, ?Proc proc, ?json_options options) -> untyped + # <!-- + # rdoc-file=ext/json/lib/json/common.rb + # - JSON.load_file(path, opts={}) -> object + # --> + # Calls: + # parse(File.read(path), opts) + # + # See method #parse. + # + def self?.load_file: (string path, ?json_options opts) -> untyped + + # <!-- + # rdoc-file=ext/json/lib/json/common.rb + # - JSON.load_file!(path, opts = {}) + # --> + # Calls: + # JSON.parse!(File.read(path, opts)) + # + # See method #parse! + # + def self?.load_file!: (string path, ?json_options opts) -> untyped + # <!-- rdoc-file=ext/json/lib/json/common.rb --> # Sets or returns default options for the JSON.load method. Initially: # opts = JSON.load_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} #