Class: JSON::Coder Private

Inherits:
Object show all
Defined in:
sorbet/rbi/upstream.rbi

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

https://github.com/sorbet/sorbet/pull/10666

Instance Method Summary collapse

Constructor Details

#initialize(options = nil, **kwoptions, &as_json) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • options (Hash{Symbol => T.anything}, nil) (defaults to: nil)
  • kwoptions (T.anything)
  • as_json (T.proc.params(object: T.anything).returns(T.anything), nil)


28
# File 'sorbet/rbi/upstream.rbi', line 28

def initialize(options = nil, **kwoptions, &as_json); end

Instance Method Details

#dump(object, io = nil) ⇒ T.type_parameter(:IO)

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • object (T.anything)
  • io (T.type_parameter(:IO)) (defaults to: nil)

Returns:

  • (T.type_parameter(:IO))


39
# File 'sorbet/rbi/upstream.rbi', line 39

def dump(object, io = nil); end