brew/Library/Homebrew/sorbet/rbi/gems/hana@1.3.7.rbi

158 lines
3.7 KiB
Plaintext
Raw Normal View History

# typed: true
2021-09-10 03:21:26 +01:00
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `hana` gem.
2021-09-17 19:28:50 +01:00
# Please instead update this file by running `bin/tapioca gem hana`.
2021-09-10 03:21:26 +01:00
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#3
2021-09-10 21:21:17 +01:00
module Hana; end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#56
2021-09-10 21:21:17 +01:00
class Hana::Patch
2023-12-14 15:34:15 +00:00
# @return [Patch] a new instance of Patch
#
# source://hana//lib/hana.rb#88
2021-09-10 21:21:17 +01:00
def initialize(is); end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#94
2021-09-10 21:21:17 +01:00
def apply(doc); end
private
2023-12-14 15:34:15 +00:00
# @raise [MissingTargetException]
#
# source://hana//lib/hana.rb#107
2021-09-10 21:21:17 +01:00
def add(ins, doc); end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#223
2021-09-10 21:21:17 +01:00
def add_op(dest, key, obj); end
2023-12-14 15:34:15 +00:00
# @raise [ObjectOperationOnArrayException]
#
# source://hana//lib/hana.rb#214
2021-09-10 21:21:17 +01:00
def check_index(obj, key); end
2023-12-14 15:34:15 +00:00
# @raise [MissingTargetException]
#
# source://hana//lib/hana.rb#144
2021-09-10 21:21:17 +01:00
def copy(ins, doc); end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#202
2021-09-10 21:21:17 +01:00
def get_path(ins); end
2023-12-14 15:34:15 +00:00
# @raise [MissingTargetException]
#
# source://hana//lib/hana.rb#128
2021-09-10 21:21:17 +01:00
def move(ins, doc); end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#193
2021-09-10 21:21:17 +01:00
def remove(ins, doc); end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#180
2021-09-10 21:21:17 +01:00
def replace(ins, doc); end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#232
2021-09-10 21:21:17 +01:00
def rm_op(obj, key); end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#170
2021-09-10 21:21:17 +01:00
def test(ins, doc); end
end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#57
2021-09-10 21:21:17 +01:00
class Hana::Patch::Exception < ::StandardError; end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#104
2021-09-10 21:21:17 +01:00
Hana::Patch::FROM = T.let(T.unsafe(nil), String)
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#60
2021-09-10 21:21:17 +01:00
class Hana::Patch::FailedTestException < ::Hana::Patch::Exception
2023-12-14 15:34:15 +00:00
# @return [FailedTestException] a new instance of FailedTestException
#
# source://hana//lib/hana.rb#63
2021-09-10 21:21:17 +01:00
def initialize(path, value); end
2023-12-14 15:34:15 +00:00
# Returns the value of attribute path.
#
# source://hana//lib/hana.rb#61
2021-09-10 21:21:17 +01:00
def path; end
2023-12-14 15:34:15 +00:00
# Sets the attribute path
#
# @param value the value to set the attribute path to.
#
# source://hana//lib/hana.rb#61
2021-09-10 21:21:17 +01:00
def path=(_arg0); end
2023-12-14 15:34:15 +00:00
# Returns the value of attribute value.
#
# source://hana//lib/hana.rb#61
2021-09-10 21:21:17 +01:00
def value; end
2023-12-14 15:34:15 +00:00
# Sets the attribute value
#
# @param value the value to set the attribute value to.
#
# source://hana//lib/hana.rb#61
2021-09-10 21:21:17 +01:00
def value=(_arg0); end
end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#79
2021-09-10 21:21:17 +01:00
class Hana::Patch::IndexError < ::Hana::Patch::Exception; end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#76
2021-09-10 21:21:17 +01:00
class Hana::Patch::InvalidObjectOperationException < ::Hana::Patch::Exception; end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#85
2021-09-10 21:21:17 +01:00
class Hana::Patch::InvalidPath < ::Hana::Patch::Exception; end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#82
2021-09-10 21:21:17 +01:00
class Hana::Patch::MissingTargetException < ::Hana::Patch::Exception; end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#73
2021-09-10 21:21:17 +01:00
class Hana::Patch::ObjectOperationOnArrayException < ::Hana::Patch::Exception; end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#70
2021-09-10 21:21:17 +01:00
class Hana::Patch::OutOfBoundsException < ::Hana::Patch::Exception; end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#92
2021-09-10 21:21:17 +01:00
Hana::Patch::VALID = T.let(T.unsafe(nil), Hash)
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#105
2021-09-10 21:21:17 +01:00
Hana::Patch::VALUE = T.let(T.unsafe(nil), String)
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#6
2021-09-10 21:21:17 +01:00
class Hana::Pointer
include ::Enumerable
2023-12-14 15:34:15 +00:00
# @return [Pointer] a new instance of Pointer
#
# source://hana//lib/hana.rb#15
2021-09-10 21:21:17 +01:00
def initialize(path); end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#19
2021-09-10 21:21:17 +01:00
def each(&block); end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#21
2021-09-10 21:21:17 +01:00
def eval(object); end
class << self
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#27
2021-09-10 21:21:17 +01:00
def eval(list, object); end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#39
2021-09-10 21:21:17 +01:00
def parse(path); end
end
end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#25
2021-09-10 21:21:17 +01:00
Hana::Pointer::ESC = T.let(T.unsafe(nil), Hash)
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#9
2021-09-10 21:21:17 +01:00
class Hana::Pointer::Exception < ::StandardError; end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#12
2021-09-10 21:21:17 +01:00
class Hana::Pointer::FormatError < ::Hana::Pointer::Exception; end
2023-12-14 15:34:15 +00:00
# source://hana//lib/hana.rb#4
2021-09-10 21:21:17 +01:00
Hana::VERSION = T.let(T.unsafe(nil), String)