mangrove 0.18.0 → 0.19.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/mangrove/result.rb +92 -3
- data/lib/mangrove/version.rb +1 -1
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1 -5
- data/sorbet/rbi/gems/docile@1.4.0.rbi +376 -0
- data/sorbet/rbi/gems/json@2.6.3.rbi +73 -65
- data/sorbet/rbi/gems/prism@0.15.1.rbi +23916 -2
- data/sorbet/rbi/gems/rake@13.0.6.rbi +1 -141
- data/sorbet/rbi/gems/{rbi@0.1.1.rbi → rbi@0.1.3.rbi} +53 -57
- data/sorbet/rbi/gems/regexp_parser@2.8.2.rbi +37 -37
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +2 -2
- data/sorbet/rbi/gems/rspec-core@3.12.2.rbi +8 -39
- data/sorbet/rbi/gems/rspec-expectations@3.12.3.rbi +25 -25
- data/sorbet/rbi/gems/rspec-mocks@3.12.6.rbi +4 -8
- data/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi +2 -2
- data/sorbet/rbi/gems/rspec-support@3.12.1.rbi +2 -2
- data/sorbet/rbi/gems/rspec@3.12.0.rbi +1 -1
- data/sorbet/rbi/gems/rubocop-ast@1.29.0.rbi +263 -176
- data/sorbet/rbi/gems/rubocop@1.57.1.rbi +1019 -719
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +5 -5
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +216 -0
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +2135 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.2.4.rbi +15 -15
- data/sorbet/rbi/gems/{tapioca@0.11.9.rbi → tapioca@0.11.10.rbi} +40 -29
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +1 -1
- data/sorbet/rbi/gems/yard@0.9.34.rbi +46 -50
- data/sorbet/tapioca/require.rb +6 -1
- metadata +9 -34
- data/docs/Mangrove/ControlFlow/ControlSignal.html +0 -223
- data/docs/Mangrove/ControlFlow/Handler/ClassMethods.html +0 -563
- data/docs/Mangrove/ControlFlow/Handler.html +0 -139
- data/docs/Mangrove/ControlFlow/Rewriter.html +0 -331
- data/docs/Mangrove/ControlFlow.html +0 -115
- data/docs/Mangrove/Option/ControlSignal.html +0 -434
- data/docs/Mangrove/Option/None.html +0 -1085
- data/docs/Mangrove/Option/Some.html +0 -1202
- data/docs/Mangrove/Option.html +0 -1145
- data/docs/Mangrove/Result/ControlSignal.html +0 -434
- data/docs/Mangrove/Result/Err.html +0 -2254
- data/docs/Mangrove/Result/Ok.html +0 -2219
- data/docs/Mangrove/Result.html +0 -2475
- data/docs/Mangrove.html +0 -144
- data/docs/_index.html +0 -225
- data/docs/class_list.html +0 -51
- data/docs/css/common.css +0 -1
- data/docs/css/full_list.css +0 -58
- data/docs/css/style.css +0 -497
- data/docs/file.README.html +0 -245
- data/docs/file_list.html +0 -56
- data/docs/frames.html +0 -17
- data/docs/index.html +0 -245
- data/docs/js/app.js +0 -314
- data/docs/js/full_list.js +0 -216
- data/docs/js/jquery.js +0 -4
- data/docs/method_list.html +0 -939
- data/docs/top-level-namespace.html +0 -110
- data/sorbet/rbi/gems/yarp@0.13.0.rbi +0 -21646
- data/sorbet/rbi/shims/mangrove/option.rbi +0 -15
- data/sorbet/rbi/shims/mangrove/result.rbi +0 -15
@@ -503,7 +503,7 @@ end
|
|
503
503
|
# A subclass of Hash where all keys are converted into Symbols, and
|
504
504
|
# optionally, all String values are converted into Symbols.
|
505
505
|
#
|
506
|
-
# source://yard//lib/yard/core_ext/symbol_hash.rb#
|
506
|
+
# source://yard//lib/yard/core_ext/symbol_hash.rb#8
|
507
507
|
class SymbolHash < ::Hash
|
508
508
|
# Creates a new SymbolHash object
|
509
509
|
#
|
@@ -808,7 +808,7 @@ end
|
|
808
808
|
#
|
809
809
|
# @since 0.6.2
|
810
810
|
#
|
811
|
-
# source://yard//lib/yard/cli/config.rb#
|
811
|
+
# source://yard//lib/yard/cli/config.rb#7
|
812
812
|
class YARD::CLI::Config < ::YARD::CLI::Command
|
813
813
|
# @return [Config] a new instance of Config
|
814
814
|
# @since 0.6.2
|
@@ -1129,7 +1129,7 @@ end
|
|
1129
1129
|
# @see Graph#run
|
1130
1130
|
# @since 0.6.0
|
1131
1131
|
#
|
1132
|
-
# source://yard//lib/yard/cli/graph.rb#
|
1132
|
+
# source://yard//lib/yard/cli/graph.rb#27
|
1133
1133
|
class YARD::CLI::Graph < ::YARD::CLI::YardoptsCommand
|
1134
1134
|
# Creates a new instance of the command-line utility
|
1135
1135
|
#
|
@@ -1189,7 +1189,7 @@ end
|
|
1189
1189
|
|
1190
1190
|
# Options to pass to the {Graph} CLI.
|
1191
1191
|
#
|
1192
|
-
# source://yard//lib/yard/cli/graph.rb#
|
1192
|
+
# source://yard//lib/yard/cli/graph.rb#6
|
1193
1193
|
class YARD::CLI::GraphOptions < ::YARD::Templates::TemplateOptions
|
1194
1194
|
# @return [String] any contents to pass to the digraph
|
1195
1195
|
#
|
@@ -1329,7 +1329,7 @@ end
|
|
1329
1329
|
#
|
1330
1330
|
# @since 0.6.0
|
1331
1331
|
#
|
1332
|
-
# source://yard//lib/yard/cli/server.rb#
|
1332
|
+
# source://yard//lib/yard/cli/server.rb#8
|
1333
1333
|
class YARD::CLI::Server < ::YARD::CLI::Command
|
1334
1334
|
# Creates a new instance of the Server command line utility
|
1335
1335
|
#
|
@@ -1632,7 +1632,7 @@ YARD::CLI::Stats::STATS_ORDER = T.let(T.unsafe(nil), Array)
|
|
1632
1632
|
|
1633
1633
|
# A tool to view documentation in the console like `ri`
|
1634
1634
|
#
|
1635
|
-
# source://yard//lib/yard/cli/yri.rb#
|
1635
|
+
# source://yard//lib/yard/cli/yri.rb#9
|
1636
1636
|
class YARD::CLI::YRI < ::YARD::CLI::Command
|
1637
1637
|
# @return [YRI] a new instance of YRI
|
1638
1638
|
#
|
@@ -1762,7 +1762,7 @@ YARD::CLI::YRI::DEFAULT_SEARCH_PATHS = T.let(T.unsafe(nil), Array)
|
|
1762
1762
|
# source://yard//lib/yard/cli/yri.rb#15
|
1763
1763
|
YARD::CLI::YRI::SEARCH_PATHS_FILE = T.let(T.unsafe(nil), String)
|
1764
1764
|
|
1765
|
-
# source://yard//lib/yard/cli/yardoc.rb#
|
1765
|
+
# source://yard//lib/yard/cli/yardoc.rb#147
|
1766
1766
|
class YARD::CLI::Yardoc < ::YARD::CLI::YardoptsCommand
|
1767
1767
|
# Creates a new instance of the commandline utility
|
1768
1768
|
#
|
@@ -2135,7 +2135,7 @@ end
|
|
2135
2135
|
|
2136
2136
|
# Default options used in +yard doc+ command.
|
2137
2137
|
#
|
2138
|
-
# source://yard//lib/yard/cli/yardoc.rb#
|
2138
|
+
# source://yard//lib/yard/cli/yardoc.rb#10
|
2139
2139
|
class YARD::CLI::YardocOptions < ::YARD::Templates::TemplateOptions
|
2140
2140
|
# @return [CodeObjects::ExtraFileObject] the file object being rendered.
|
2141
2141
|
# The +object+ key is not used so that a file may be rendered in the context
|
@@ -2263,7 +2263,7 @@ end
|
|
2263
2263
|
# @abstract
|
2264
2264
|
# @since 0.8.3
|
2265
2265
|
#
|
2266
|
-
# source://yard//lib/yard/cli/yardopts_command.rb#
|
2266
|
+
# source://yard//lib/yard/cli/yardopts_command.rb#11
|
2267
2267
|
class YARD::CLI::YardoptsCommand < ::YARD::CLI::Command
|
2268
2268
|
# Creates a new command that reads .yardopts
|
2269
2269
|
#
|
@@ -2937,7 +2937,7 @@ YARD::CodeObjects::CSEPQ = T.let(T.unsafe(nil), String)
|
|
2937
2937
|
# A ClassObject represents a Ruby class in source code. It is a {ModuleObject}
|
2938
2938
|
# with extra inheritance semantics through the superclass.
|
2939
2939
|
#
|
2940
|
-
# source://yard//lib/yard/code_objects/class_object.rb#
|
2940
|
+
# source://yard//lib/yard/code_objects/class_object.rb#9
|
2941
2941
|
class YARD::CodeObjects::ClassObject < ::YARD::CodeObjects::NamespaceObject
|
2942
2942
|
# Creates a new class object in +namespace+ with +name+
|
2943
2943
|
#
|
@@ -3018,7 +3018,7 @@ end
|
|
3018
3018
|
# Represents a class variable inside a namespace. The path is expressed
|
3019
3019
|
# in the form "A::B::@@classvariable"
|
3020
3020
|
#
|
3021
|
-
# source://yard//lib/yard/code_objects/class_variable_object.rb#
|
3021
|
+
# source://yard//lib/yard/code_objects/class_variable_object.rb#8
|
3022
3022
|
class YARD::CodeObjects::ClassVariableObject < ::YARD::CodeObjects::Base
|
3023
3023
|
# @return [String] the class variable's value
|
3024
3024
|
#
|
@@ -3034,7 +3034,7 @@ end
|
|
3034
3034
|
# A list of code objects. This array acts like a set (no unique items)
|
3035
3035
|
# but also disallows any {Proxy} objects from being added.
|
3036
3036
|
#
|
3037
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
3037
|
+
# source://yard//lib/yard/code_objects/base.rb#10
|
3038
3038
|
class YARD::CodeObjects::CodeObjectList < ::Array
|
3039
3039
|
# Creates a new object list associated with a namespace
|
3040
3040
|
#
|
@@ -3064,7 +3064,7 @@ end
|
|
3064
3064
|
# A +ConstantObject+ represents a Ruby constant (not a module or class).
|
3065
3065
|
# To access the constant's (source code) value, use {#value}.
|
3066
3066
|
#
|
3067
|
-
# source://yard//lib/yard/code_objects/constant_object.rb#
|
3067
|
+
# source://yard//lib/yard/code_objects/constant_object.rb#9
|
3068
3068
|
class YARD::CodeObjects::ConstantObject < ::YARD::CodeObjects::Base
|
3069
3069
|
# The source code representing the constant's value
|
3070
3070
|
#
|
@@ -3431,7 +3431,7 @@ YARD::CodeObjects::MacroObject::MACRO_MATCH = T.let(T.unsafe(nil), Regexp)
|
|
3431
3431
|
|
3432
3432
|
# Represents a Ruby method in source
|
3433
3433
|
#
|
3434
|
-
# source://yard//lib/yard/code_objects/method_object.rb#
|
3434
|
+
# source://yard//lib/yard/code_objects/method_object.rb#10
|
3435
3435
|
class YARD::CodeObjects::MethodObject < ::YARD::CodeObjects::Base
|
3436
3436
|
# Creates a new method object in +namespace+ with +name+ and an instance
|
3437
3437
|
# or class +scope+
|
@@ -3604,7 +3604,7 @@ end
|
|
3604
3604
|
|
3605
3605
|
# Represents a Ruby module.
|
3606
3606
|
#
|
3607
|
-
# source://yard//lib/yard/code_objects/module_object.rb#
|
3607
|
+
# source://yard//lib/yard/code_objects/module_object.rb#11
|
3608
3608
|
class YARD::CodeObjects::ModuleObject < ::YARD::CodeObjects::NamespaceObject
|
3609
3609
|
# Returns the inheritance tree of mixins.
|
3610
3610
|
#
|
@@ -3769,7 +3769,7 @@ end
|
|
3769
3769
|
# The two main Ruby objects that can act as namespaces are modules
|
3770
3770
|
# ({ModuleObject}) and classes ({ClassObject}).
|
3771
3771
|
#
|
3772
|
-
# source://yard//lib/yard/code_objects/namespace_object.rb#
|
3772
|
+
# source://yard//lib/yard/code_objects/namespace_object.rb#11
|
3773
3773
|
class YARD::CodeObjects::NamespaceObject < ::YARD::CodeObjects::Base
|
3774
3774
|
# Creates a new namespace object inside +namespace+ with +name+.
|
3775
3775
|
#
|
@@ -5915,7 +5915,7 @@ class YARD::Handlers::HandlerAborted < ::RuntimeError; end
|
|
5915
5915
|
# an operation on an object's namespace but the namespace could
|
5916
5916
|
# not be resolved.
|
5917
5917
|
#
|
5918
|
-
# source://yard//lib/yard/handlers/base.rb#
|
5918
|
+
# source://yard//lib/yard/handlers/base.rb#15
|
5919
5919
|
class YARD::Handlers::NamespaceMissingError < ::YARD::Parser::UndocumentableError
|
5920
5920
|
# @return [NamespaceMissingError] a new instance of NamespaceMissingError
|
5921
5921
|
#
|
@@ -6503,7 +6503,7 @@ class YARD::Handlers::Ruby::Legacy::AttributeHandler < ::YARD::Handlers::Ruby::L
|
|
6503
6503
|
#
|
6504
6504
|
# @abstract See {Handlers::Base} for subclassing information.
|
6505
6505
|
#
|
6506
|
-
# source://yard//lib/yard/handlers/ruby/legacy/base.rb#
|
6506
|
+
# source://yard//lib/yard/handlers/ruby/legacy/base.rb#10
|
6507
6507
|
class YARD::Handlers::Ruby::Legacy::Base < ::YARD::Handlers::Base
|
6508
6508
|
include ::YARD::Parser::Ruby::Legacy::RubyToken
|
6509
6509
|
|
@@ -7405,13 +7405,13 @@ class YARD::I18n::Text
|
|
7405
7405
|
# block separated by one or more empty lines. Empty line is a
|
7406
7406
|
# line that contains only zero or more whitespaces. It may
|
7407
7407
|
# called many times.
|
7408
|
-
# @yieldparam text [String] the text of extracted paragraph.
|
7409
|
-
# @yieldparam start_line_no [Integer] the start line number of
|
7410
|
-
# extracted paragraph.
|
7411
7408
|
# @yieldparam name [String] the name of extracted attribute.
|
7412
7409
|
# @yieldparam value [String] the value of extracted attribute.
|
7413
7410
|
# @yieldparam line_no [Integer] the defined line number of extracted
|
7414
7411
|
# attribute.
|
7412
|
+
# @yieldparam text [String] the text of extracted paragraph.
|
7413
|
+
# @yieldparam start_line_no [Integer] the start line number of
|
7414
|
+
# extracted paragraph.
|
7415
7415
|
#
|
7416
7416
|
# source://yard//lib/yard/i18n/text.rb#35
|
7417
7417
|
def extract_messages; end
|
@@ -7459,7 +7459,7 @@ end
|
|
7459
7459
|
# Handles console logging for info, warnings and errors.
|
7460
7460
|
# Uses the stdlib Logger class in Ruby for all the backend logic.
|
7461
7461
|
#
|
7462
|
-
# source://yard//lib/yard/logging.rb#
|
7462
|
+
# source://yard//lib/yard/logging.rb#12
|
7463
7463
|
class YARD::Logger < ::Logger
|
7464
7464
|
# Creates a new logger
|
7465
7465
|
#
|
@@ -7635,7 +7635,7 @@ class YARD::Logger < ::Logger
|
|
7635
7635
|
# source://yard//lib/yard/logging.rb#201
|
7636
7636
|
def format_log(sev, _time, _prog, msg); end
|
7637
7637
|
|
7638
|
-
# source://logger/1.5.
|
7638
|
+
# source://logger/1.5.0/logger.rb#485
|
7639
7639
|
def print_no_newline(msg); end
|
7640
7640
|
|
7641
7641
|
class << self
|
@@ -11128,10 +11128,6 @@ class YARD::Parser::SourceParser
|
|
11128
11128
|
# To register a callback that is called before the entire list of files
|
11129
11129
|
# is processed, see {before_parse_list}.
|
11130
11130
|
#
|
11131
|
-
# @example Cancel parsing of any test_*.rb files
|
11132
|
-
# SourceParser.before_parse_file do |parser|
|
11133
|
-
# return false if parser.file =~ /^test_.+\.rb$/
|
11134
|
-
# end
|
11135
11131
|
# @example Installing a simple callback
|
11136
11132
|
# SourceParser.before_parse_file do |parser|
|
11137
11133
|
# puts "I'm parsing #{parser.file}"
|
@@ -11141,9 +11137,13 @@ class YARD::Parser::SourceParser
|
|
11141
11137
|
# "I'm parsing lib/foo.rb"
|
11142
11138
|
# "I'm parsing lib/foo_bar.rb"
|
11143
11139
|
# "I'm parsing lib/last_file.rb"
|
11140
|
+
# @example Cancel parsing of any test_*.rb files
|
11141
|
+
# SourceParser.before_parse_file do |parser|
|
11142
|
+
# return false if parser.file =~ /^test_.+\.rb$/
|
11143
|
+
# end
|
11144
11144
|
# @return [Proc] the yielded block
|
11145
|
-
# @see before_parse_list
|
11146
11145
|
# @see after_parse_file
|
11146
|
+
# @see before_parse_list
|
11147
11147
|
# @since 0.7.0
|
11148
11148
|
# @yield [parser] the yielded block is called once before each
|
11149
11149
|
# file that is parsed. This might happen many times for a single
|
@@ -11167,6 +11167,12 @@ class YARD::Parser::SourceParser
|
|
11167
11167
|
# via {parse}. The block passed to this method will be called on
|
11168
11168
|
# subsequent parse calls.
|
11169
11169
|
#
|
11170
|
+
# @example Installing a simple callback
|
11171
|
+
# SourceParser.before_parse_list do |files, globals|
|
11172
|
+
# puts "Starting to parse..."
|
11173
|
+
# end
|
11174
|
+
# YARD.parse('lib/**/*.rb')
|
11175
|
+
# # prints "Starting to parse..."
|
11170
11176
|
# @example Setting global state
|
11171
11177
|
# SourceParser.before_parse_list do |files, globals|
|
11172
11178
|
# globals.method_count = 0
|
@@ -11180,12 +11186,6 @@ class YARD::Parser::SourceParser
|
|
11180
11186
|
# end
|
11181
11187
|
# YARD.parse
|
11182
11188
|
# # Prints: "Found 37 methods"
|
11183
|
-
# @example Installing a simple callback
|
11184
|
-
# SourceParser.before_parse_list do |files, globals|
|
11185
|
-
# puts "Starting to parse..."
|
11186
|
-
# end
|
11187
|
-
# YARD.parse('lib/**/*.rb')
|
11188
|
-
# # prints "Starting to parse..."
|
11189
11189
|
# @example Using a global callback to cancel parsing
|
11190
11190
|
# SourceParser.before_parse_list do |files, globals|
|
11191
11191
|
# return false if files.include?('foo.rb')
|
@@ -11194,8 +11194,8 @@ class YARD::Parser::SourceParser
|
|
11194
11194
|
# YARD.parse(['foo.rb', 'bar.rb']) # callback cancels this method
|
11195
11195
|
# YARD.parse('bar.rb') # parses normally
|
11196
11196
|
# @return [Proc] the yielded block
|
11197
|
-
# @see before_parse_file
|
11198
11197
|
# @see after_parse_list
|
11198
|
+
# @see before_parse_file
|
11199
11199
|
# @since 0.7.0
|
11200
11200
|
# @yield [files, globals] the yielded block is called once before
|
11201
11201
|
# parsing all files
|
@@ -11360,7 +11360,7 @@ module YARD::Rake; end
|
|
11360
11360
|
|
11361
11361
|
# The rake task to run {CLI::Yardoc} and generate documentation.
|
11362
11362
|
#
|
11363
|
-
# source://yard//lib/yard/rake/yardoc_task.rb#
|
11363
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#10
|
11364
11364
|
class YARD::Rake::YardocTask < ::Rake::TaskLib
|
11365
11365
|
# Creates a new task with name +name+.
|
11366
11366
|
#
|
@@ -11722,22 +11722,22 @@ module YARD::Registry
|
|
11722
11722
|
# Attempts to find an object by name starting at +namespace+, performing
|
11723
11723
|
# a lookup similar to Ruby's method of resolving a constant in a namespace.
|
11724
11724
|
#
|
11725
|
+
# @example Looks for instance method #reverse starting from A::B::C
|
11726
|
+
# Registry.resolve(P("A::B::C"), "#reverse")
|
11725
11727
|
# @example Looks for a constant in the root namespace
|
11726
11728
|
# Registry.resolve(nil, 'CONSTANT')
|
11727
11729
|
# @example Looks for a class method respecting the inheritance tree
|
11728
11730
|
# Registry.resolve(myclass, 'mymethod', true)
|
11729
|
-
# @example Looks for instance method #reverse starting from A::B::C
|
11730
|
-
# Registry.resolve(P("A::B::C"), "#reverse")
|
11731
11731
|
# @example Looks for a constant but returns a proxy if not found
|
11732
11732
|
# Registry.resolve(P('A::B::C'), 'D', false, true) # => #<yardoc proxy A::B::C::D>
|
11733
11733
|
# @example Looks for a complex path from a namespace
|
11734
11734
|
# Registry.resolve(P('A::B'), 'B::D') # => #<yardoc class A::B::D>
|
11735
|
-
# @param inheritance [Boolean] Follows inheritance chain (mixins, superclass)
|
11736
|
-
# when performing name resolution if set to +true+.
|
11737
11735
|
# @param namespace [CodeObjects::NamespaceObject, nil] the starting namespace
|
11738
11736
|
# (module or class). If +nil+ or +:root+, starts from the {root} object.
|
11739
11737
|
# @param name [String, Symbol] the name (or complex path) to look for from
|
11740
11738
|
# +namespace+.
|
11739
|
+
# @param inheritance [Boolean] Follows inheritance chain (mixins, superclass)
|
11740
|
+
# when performing name resolution if set to +true+.
|
11741
11741
|
# @param proxy_fallback [Boolean] If +true+, returns a proxy representing
|
11742
11742
|
# the unresolved path (namespace + name) if no object is found.
|
11743
11743
|
# @param type [Symbol, nil] the {CodeObjects::Base#type} that the resolved
|
@@ -11895,12 +11895,12 @@ class YARD::RegistryResolver
|
|
11895
11895
|
# object can be returned if the lookup fails for future resolution. The
|
11896
11896
|
# proxy will be type hinted with the +type+ used in the original lookup.
|
11897
11897
|
#
|
11898
|
-
# @example A lookup on a method through the inheritance tree
|
11899
|
-
# resolver.lookup_by_math("A::B#foo", inheritance: true)
|
11900
11898
|
# @example A lookup from root
|
11901
11899
|
# resolver.lookup_by_path("A::B::C")
|
11902
11900
|
# @example A lookup from the A::B namespace
|
11903
11901
|
# resolver.lookup_by_path("C", namespace: P("A::B"))
|
11902
|
+
# @example A lookup on a method through the inheritance tree
|
11903
|
+
# resolver.lookup_by_math("A::B#foo", inheritance: true)
|
11904
11904
|
# @option opts
|
11905
11905
|
# @option opts
|
11906
11906
|
# @option opts
|
@@ -12298,7 +12298,7 @@ end
|
|
12298
12298
|
|
12299
12299
|
# Implements a serializer that reads from and writes to the filesystem.
|
12300
12300
|
#
|
12301
|
-
# source://yard//lib/yard/serializers/file_system_serializer.rb#
|
12301
|
+
# source://yard//lib/yard/serializers/file_system_serializer.rb#7
|
12302
12302
|
class YARD::Serializers::FileSystemSerializer < ::YARD::Serializers::Base
|
12303
12303
|
# Creates a new FileSystemSerializer with options
|
12304
12304
|
#
|
@@ -12386,7 +12386,7 @@ end
|
|
12386
12386
|
# serializer = ProcessSerializer.new('less')
|
12387
12387
|
# serializer.serialize(object, "data!")
|
12388
12388
|
#
|
12389
|
-
# source://yard//lib/yard/serializers/process_serializer.rb#
|
12389
|
+
# source://yard//lib/yard/serializers/process_serializer.rb#12
|
12390
12390
|
class YARD::Serializers::ProcessSerializer < ::YARD::Serializers::Base
|
12391
12391
|
# Creates a new ProcessSerializer for the shell command +cmd+
|
12392
12392
|
#
|
@@ -12405,7 +12405,7 @@ end
|
|
12405
12405
|
|
12406
12406
|
# A serializer that writes data to standard output.
|
12407
12407
|
#
|
12408
|
-
# source://yard//lib/yard/serializers/stdout_serializer.rb#
|
12408
|
+
# source://yard//lib/yard/serializers/stdout_serializer.rb#9
|
12409
12409
|
class YARD::Serializers::StdoutSerializer < ::YARD::Serializers::Base
|
12410
12410
|
# Creates a serializer to print text to stdout
|
12411
12411
|
#
|
@@ -16166,10 +16166,6 @@ class YARD::Tags::TypesExplainer
|
|
16166
16166
|
#
|
16167
16167
|
# source://yard//lib/yard/tags/types_explainer.rb#17
|
16168
16168
|
def explain!(*types); end
|
16169
|
-
|
16170
|
-
private
|
16171
|
-
|
16172
|
-
def new(*_arg0); end
|
16173
16169
|
end
|
16174
16170
|
end
|
16175
16171
|
|
@@ -17865,7 +17861,7 @@ end
|
|
17865
17861
|
#
|
17866
17862
|
# @see CLI::YardocOptions
|
17867
17863
|
#
|
17868
|
-
# source://yard//lib/yard/templates/template_options.rb#
|
17864
|
+
# source://yard//lib/yard/templates/template_options.rb#11
|
17869
17865
|
class YARD::Templates::TemplateOptions < ::YARD::Options
|
17870
17866
|
# @return [OpenStruct] an open struct containing any global state across all
|
17871
17867
|
# generated objects in a template.
|
data/sorbet/tapioca/require.rb
CHANGED
@@ -1,4 +1,9 @@
|
|
1
1
|
# typed: true
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
-
|
4
|
+
require "mangrove/control_flow/control_signal"
|
5
|
+
require "mangrove/option"
|
6
|
+
require "mangrove/result"
|
7
|
+
require "rspec/sorbet"
|
8
|
+
require "simplecov"
|
9
|
+
require "sorbet-runtime"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mangrove
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuma Murata
|
@@ -35,34 +35,6 @@ files:
|
|
35
35
|
- LICENSE
|
36
36
|
- README.md
|
37
37
|
- Rakefile
|
38
|
-
- docs/Mangrove.html
|
39
|
-
- docs/Mangrove/ControlFlow.html
|
40
|
-
- docs/Mangrove/ControlFlow/ControlSignal.html
|
41
|
-
- docs/Mangrove/ControlFlow/Handler.html
|
42
|
-
- docs/Mangrove/ControlFlow/Handler/ClassMethods.html
|
43
|
-
- docs/Mangrove/ControlFlow/Rewriter.html
|
44
|
-
- docs/Mangrove/Option.html
|
45
|
-
- docs/Mangrove/Option/ControlSignal.html
|
46
|
-
- docs/Mangrove/Option/None.html
|
47
|
-
- docs/Mangrove/Option/Some.html
|
48
|
-
- docs/Mangrove/Result.html
|
49
|
-
- docs/Mangrove/Result/ControlSignal.html
|
50
|
-
- docs/Mangrove/Result/Err.html
|
51
|
-
- docs/Mangrove/Result/Ok.html
|
52
|
-
- docs/_index.html
|
53
|
-
- docs/class_list.html
|
54
|
-
- docs/css/common.css
|
55
|
-
- docs/css/full_list.css
|
56
|
-
- docs/css/style.css
|
57
|
-
- docs/file.README.html
|
58
|
-
- docs/file_list.html
|
59
|
-
- docs/frames.html
|
60
|
-
- docs/index.html
|
61
|
-
- docs/js/app.js
|
62
|
-
- docs/js/full_list.js
|
63
|
-
- docs/js/jquery.js
|
64
|
-
- docs/method_list.html
|
65
|
-
- docs/top-level-namespace.html
|
66
38
|
- hooks/pre-push
|
67
39
|
- lib/mangrove.rb
|
68
40
|
- lib/mangrove/control_flow/control_signal.rb
|
@@ -73,11 +45,13 @@ files:
|
|
73
45
|
- lib/mangrove/version.rb
|
74
46
|
- sig/mangrove.rbs
|
75
47
|
- sorbet/config
|
48
|
+
- sorbet/rbi/annotations/.gitattributes
|
76
49
|
- sorbet/rbi/annotations/rainbow.rbi
|
77
50
|
- sorbet/rbi/gems/.gitattributes
|
78
51
|
- sorbet/rbi/gems/ast@2.4.2.rbi
|
79
52
|
- sorbet/rbi/gems/base64@0.1.1.rbi
|
80
53
|
- sorbet/rbi/gems/diff-lcs@1.5.0.rbi
|
54
|
+
- sorbet/rbi/gems/docile@1.4.0.rbi
|
81
55
|
- sorbet/rbi/gems/erubi@1.12.0.rbi
|
82
56
|
- sorbet/rbi/gems/json@2.6.3.rbi
|
83
57
|
- sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi
|
@@ -90,7 +64,7 @@ files:
|
|
90
64
|
- sorbet/rbi/gems/racc@1.7.1.rbi
|
91
65
|
- sorbet/rbi/gems/rainbow@3.1.1.rbi
|
92
66
|
- sorbet/rbi/gems/rake@13.0.6.rbi
|
93
|
-
- sorbet/rbi/gems/rbi@0.1.
|
67
|
+
- sorbet/rbi/gems/rbi@0.1.3.rbi
|
94
68
|
- sorbet/rbi/gems/regexp_parser@2.8.2.rbi
|
95
69
|
- sorbet/rbi/gems/rexml@3.2.6.rbi
|
96
70
|
- sorbet/rbi/gems/rspec-core@3.12.2.rbi
|
@@ -108,18 +82,18 @@ files:
|
|
108
82
|
- sorbet/rbi/gems/rubocop@1.57.1.rbi
|
109
83
|
- sorbet/rbi/gems/ruby-lsp@0.12.0.rbi
|
110
84
|
- sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi
|
85
|
+
- sorbet/rbi/gems/simplecov-html@0.12.3.rbi
|
86
|
+
- sorbet/rbi/gems/simplecov@0.21.2.rbi
|
87
|
+
- sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi
|
111
88
|
- sorbet/rbi/gems/spoom@1.2.4.rbi
|
112
89
|
- sorbet/rbi/gems/syntax_tree@6.2.0.rbi
|
113
|
-
- sorbet/rbi/gems/tapioca@0.11.
|
90
|
+
- sorbet/rbi/gems/tapioca@0.11.10.rbi
|
114
91
|
- sorbet/rbi/gems/thor@1.3.0.rbi
|
115
92
|
- sorbet/rbi/gems/unicode-display_width@2.5.0.rbi
|
116
93
|
- sorbet/rbi/gems/yard-sorbet@0.8.1.rbi
|
117
94
|
- sorbet/rbi/gems/yard@0.9.34.rbi
|
118
|
-
- sorbet/rbi/gems/yarp@0.13.0.rbi
|
119
95
|
- sorbet/rbi/shims/gems/rspec-core.rbi
|
120
96
|
- sorbet/rbi/shims/gems/rspec-expectations.rbi
|
121
|
-
- sorbet/rbi/shims/mangrove/option.rbi
|
122
|
-
- sorbet/rbi/shims/mangrove/result.rbi
|
123
97
|
- sorbet/tapioca/config.yml
|
124
98
|
- sorbet/tapioca/require.rb
|
125
99
|
homepage: https://github.com/kazzix14/mangrove
|
@@ -127,6 +101,7 @@ licenses:
|
|
127
101
|
- MIT
|
128
102
|
metadata:
|
129
103
|
homepage_uri: https://github.com/kazzix14/mangrove
|
104
|
+
documentation_uri: https://kazzix14.github.io/mangrove/docs/
|
130
105
|
source_code_uri: https://github.com/kazzix14/mangrove
|
131
106
|
rubygems_mfa_required: 'true'
|
132
107
|
post_install_message:
|
@@ -1,223 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Module: Mangrove::ControlFlow::ControlSignal
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.34
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
16
|
-
|
17
|
-
<script type="text/javascript">
|
18
|
-
pathId = "Mangrove::ControlFlow::ControlSignal";
|
19
|
-
relpath = '../../';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="../../_index.html">Index (C)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../../Mangrove.html" title="Mangrove (module)">Mangrove</a></span></span> » <span class='title'><span class='object_link'><a href="../ControlFlow.html" title="Mangrove::ControlFlow (module)">ControlFlow</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">ControlSignal</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="../../class_list.html">
|
50
|
-
|
51
|
-
<svg width="24" height="24">
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
-
</svg>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div id="content"><h1>Module: Mangrove::ControlFlow::ControlSignal
|
63
|
-
<span class="abstract note title">Abstract</span>
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
<dl>
|
73
|
-
<dt>Extended by:</dt>
|
74
|
-
<dd>T::Helpers, T::Sig</dd>
|
75
|
-
</dl>
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
<dl>
|
83
|
-
<dt>Included in:</dt>
|
84
|
-
<dd><span class='object_link'><a href="../Option/ControlSignal.html" title="Mangrove::Option::ControlSignal (class)">Option::ControlSignal</a></span>, <span class='object_link'><a href="../Result/ControlSignal.html" title="Mangrove::Result::ControlSignal (class)">Result::ControlSignal</a></span></dd>
|
85
|
-
</dl>
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
<dl>
|
90
|
-
<dt>Defined in:</dt>
|
91
|
-
<dd>lib/mangrove/control_flow/control_signal.rb</dd>
|
92
|
-
</dl>
|
93
|
-
|
94
|
-
</div>
|
95
|
-
|
96
|
-
<h2>Overview</h2><div class="docstring">
|
97
|
-
<div class="discussion">
|
98
|
-
<div class="note abstract">
|
99
|
-
<strong>This module is abstract.</strong>
|
100
|
-
<div class='inline'>
|
101
|
-
<p>Subclasses must implement the ‘abstract` methods below.</p>
|
102
|
-
</div>
|
103
|
-
</div>
|
104
|
-
|
105
|
-
|
106
|
-
</div>
|
107
|
-
</div>
|
108
|
-
<div class="tags">
|
109
|
-
|
110
|
-
|
111
|
-
</div>
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
<h2>
|
120
|
-
Instance Method Summary
|
121
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
122
|
-
</h2>
|
123
|
-
|
124
|
-
<ul class="summary">
|
125
|
-
|
126
|
-
<li class="public ">
|
127
|
-
<span class="summary_signature">
|
128
|
-
|
129
|
-
<a href="#inner_value-instance_method" title="#inner_value (instance method)">#<strong>inner_value</strong> ⇒ T.untyped </a>
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
</span>
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
<span class="abstract note title">abstract</span>
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
144
|
-
|
145
|
-
</li>
|
146
|
-
|
147
|
-
|
148
|
-
</ul>
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
<div id="instance_method_details" class="method_details_list">
|
156
|
-
<h2>Instance Method Details</h2>
|
157
|
-
|
158
|
-
|
159
|
-
<div class="method_details first">
|
160
|
-
<h3 class="signature first" id="inner_value-instance_method">
|
161
|
-
|
162
|
-
#<strong>inner_value</strong> ⇒ <tt>T.untyped</tt>
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
</h3><div class="docstring">
|
169
|
-
<div class="discussion">
|
170
|
-
<div class="note abstract">
|
171
|
-
<strong>This method is abstract.</strong>
|
172
|
-
<div class='inline'></div>
|
173
|
-
</div>
|
174
|
-
|
175
|
-
|
176
|
-
</div>
|
177
|
-
</div>
|
178
|
-
<div class="tags">
|
179
|
-
|
180
|
-
<p class="tag_title">Returns:</p>
|
181
|
-
<ul class="return">
|
182
|
-
|
183
|
-
<li>
|
184
|
-
|
185
|
-
|
186
|
-
<span class='type'>(<tt>T.untyped</tt>)</span>
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
</li>
|
191
|
-
|
192
|
-
</ul>
|
193
|
-
|
194
|
-
</div><table class="source_code">
|
195
|
-
<tr>
|
196
|
-
<td>
|
197
|
-
<pre class="lines">
|
198
|
-
|
199
|
-
|
200
|
-
13</pre>
|
201
|
-
</td>
|
202
|
-
<td>
|
203
|
-
<pre class="code"><span class="info file"># File 'lib/mangrove/control_flow/control_signal.rb', line 13</span>
|
204
|
-
|
205
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_inner_value'>inner_value</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
206
|
-
</td>
|
207
|
-
</tr>
|
208
|
-
</table>
|
209
|
-
</div>
|
210
|
-
|
211
|
-
</div>
|
212
|
-
|
213
|
-
</div>
|
214
|
-
|
215
|
-
<div id="footer">
|
216
|
-
Generated on Wed Nov 15 22:12:58 2023 by
|
217
|
-
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
218
|
-
0.9.34 (ruby-3.1.2).
|
219
|
-
</div>
|
220
|
-
|
221
|
-
</div>
|
222
|
-
</body>
|
223
|
-
</html>
|