Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sorbet: update RBI files using Tapioca. #8506

Merged
merged 1 commit into from Aug 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
94 changes: 94 additions & 0 deletions Library/Homebrew/sorbet/rbi/gems/json@2.3.1.rbi
@@ -0,0 +1,94 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `json` gem.
# Please instead update this file by running `tapioca sync`.

# typed: true

class Class < ::Module
def json_creatable?; end
end

module JSON

private

def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end
def fast_generate(obj, opts = T.unsafe(nil)); end
def fast_unparse(obj, opts = T.unsafe(nil)); end
def generate(obj, opts = T.unsafe(nil)); end
def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
def parse(source, opts = T.unsafe(nil)); end
def parse!(source, opts = T.unsafe(nil)); end
def pretty_generate(obj, opts = T.unsafe(nil)); end
def pretty_unparse(obj, opts = T.unsafe(nil)); end
def recurse_proc(result, &proc); end
def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
def unparse(obj, opts = T.unsafe(nil)); end

class << self
def [](object, opts = T.unsafe(nil)); end
def create_id; end
def create_id=(_); end
def deep_const_get(path); end
def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end
def dump_default_options; end
def dump_default_options=(_); end
def fast_generate(obj, opts = T.unsafe(nil)); end
def fast_unparse(obj, opts = T.unsafe(nil)); end
def generate(obj, opts = T.unsafe(nil)); end
def generator; end
def generator=(generator); end
def iconv(to, from, string); end
def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
def load_default_options; end
def load_default_options=(_); end
def parse(source, opts = T.unsafe(nil)); end
def parse!(source, opts = T.unsafe(nil)); end
def parser; end
def parser=(parser); end
def pretty_generate(obj, opts = T.unsafe(nil)); end
def pretty_unparse(obj, opts = T.unsafe(nil)); end
def recurse_proc(result, &proc); end
def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
def state; end
def state=(_); end
def unparse(obj, opts = T.unsafe(nil)); end
end
end

class JSON::GenericObject < ::OpenStruct
def as_json(*_); end
def to_hash; end
def to_json(*a); end
def |(other); end

class << self
def dump(obj, *args); end
def from_hash(object); end
def json_creatable=(_); end
def json_creatable?; end
def json_create(data); end
def load(source, proc = T.unsafe(nil), opts = T.unsafe(nil)); end
end
end

class JSON::JSONError < ::StandardError
class << self
def wrap(exception); end
end
end

JSON::Parser = JSON::Ext::Parser

JSON::State = JSON::Ext::Generator::State

JSON::UnparserError = JSON::GeneratorError

module Kernel

private

def JSON(object, *args); end
def j(*objs); end
def jj(*objs); end
end