dry-monads-sorbet 1.1.0 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -1
- data/README.md +1 -1
- data/lib/bundled_rbi/dry-monads.rbi +9 -520
- data/lib/dry-monads-sorbet/tasks/dry_monads_sorbet.rake +2 -2
- data/lib/dry/monads/sorbet/version.rb +1 -1
- metadata +2 -3
- data/rbi/dry-monads.rbi +0 -593
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c162c02b06ea82b8877f4286164b149c376e78a473e5383783dade8602657b02
|
4
|
+
data.tar.gz: 03bc626123b841ce47691676f3144757f029a91af0351595faf8dce616863232
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32e149b3893c78524494007e3182ec6313c919eb1d2cca4c5054d361162a7c44dad62854ae80e20679cd76adf5f7cc310e909a084d3df0143be3c950e192171c
|
7
|
+
data.tar.gz: a9b96dba4bd1aa5c90731ac8202d2a1dd05592e40b9a0dd93e147b311776c94719d95175c56d7413f00e768834d02665f89c8e92c145ee6730c42c57fcb469b0
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,27 @@
|
|
1
|
+
1.1.5
|
2
|
+
|
3
|
+
* Fix inaccurate type annotations for `Dry::Monads::Maybe#fmap` and `Dry::Monads::Result#fmap`.
|
4
|
+
|
5
|
+
1.1.4
|
6
|
+
|
7
|
+
* Remove accidentally included autogenerated annotations from `dry-monads.rbi`.
|
8
|
+
|
9
|
+
1.1.3
|
10
|
+
|
11
|
+
* Fix missing type annotation for `Dry::Monads::Maybe#value!`.
|
12
|
+
|
13
|
+
1.1.2
|
14
|
+
|
15
|
+
* Fix an issue when used alongside `sorbet-rails`.
|
16
|
+
|
17
|
+
1.1.1
|
18
|
+
|
19
|
+
* Remove the accidentally bundled `/rbi` directory.
|
20
|
+
|
1
21
|
1.1.0
|
2
22
|
|
3
23
|
* Now shipping the rbi bundled with the gem with a rake task to update this as/when we update the gem.
|
4
24
|
|
5
25
|
1.0.0
|
6
26
|
|
7
|
-
* Initial release
|
27
|
+
* Initial release.
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
![dry-monads-sorbet](https://user-images.githubusercontent.com/2643026/69986703-dfc68200-1535-11ea-9035-38ecbdb67138.png)
|
2
2
|
|
3
|
-
# Dry Monads Sorbet ![CI Badge](https://github.com/tricycle/dry-monads-sorbet/workflows/
|
3
|
+
# Dry Monads Sorbet ![CI Badge](https://github.com/tricycle/dry-monads-sorbet/workflows/Continuous%20Integration/badge.svg)
|
4
4
|
|
5
5
|
Sorbet type hints for Dry::Monads.
|
6
6
|
|
@@ -59,8 +59,8 @@ class Dry::Monads::Maybe
|
|
59
59
|
|
60
60
|
sig do
|
61
61
|
type_parameters(:New)
|
62
|
-
.params(blk: T.proc.params(arg0: Elem).returns(T.type_parameter(:
|
63
|
-
.returns(Dry::Monads::Maybe[T.type_parameter(:
|
62
|
+
.params(blk: T.proc.params(arg0: Elem).returns(T.type_parameter(:New)))
|
63
|
+
.returns(Dry::Monads::Maybe[T.type_parameter(:New)])
|
64
64
|
end
|
65
65
|
def fmap(&blk); end
|
66
66
|
|
@@ -71,6 +71,11 @@ class Dry::Monads::Maybe
|
|
71
71
|
end
|
72
72
|
def value_or(val = nil, &blk); end
|
73
73
|
|
74
|
+
sig do
|
75
|
+
returns(Elem)
|
76
|
+
end
|
77
|
+
def value!; end
|
78
|
+
|
74
79
|
sig do
|
75
80
|
params(arg0: T.untyped)
|
76
81
|
.returns(T.self_type)
|
@@ -105,12 +110,6 @@ class Dry::Monads::Maybe::Some < Dry::Monads::Maybe
|
|
105
110
|
|
106
111
|
sig {params(value: Elem).void}
|
107
112
|
def initialize(value = nil); end
|
108
|
-
|
109
|
-
sig do
|
110
|
-
returns(Elem)
|
111
|
-
end
|
112
|
-
def value!; end
|
113
|
-
|
114
113
|
def inspect; end
|
115
114
|
def maybe(*args, &block); end
|
116
115
|
def self.[](*value); end
|
@@ -181,8 +180,8 @@ class Dry::Monads::Result
|
|
181
180
|
|
182
181
|
sig do
|
183
182
|
type_parameters(:New)
|
184
|
-
.params(blk: T.proc.params(arg0: SuccessType).returns(T.type_parameter(:
|
185
|
-
.returns(Dry::Monads::Result[FailureType, T.type_parameter(:
|
183
|
+
.params(blk: T.proc.params(arg0: SuccessType).returns(T.type_parameter(:New)))
|
184
|
+
.returns(Dry::Monads::Result[FailureType, T.type_parameter(:New)])
|
186
185
|
end
|
187
186
|
def fmap(&blk); end
|
188
187
|
|
@@ -595,515 +594,5 @@ module Dry::Monads::Lazy::Mixin::Constructors
|
|
595
594
|
end
|
596
595
|
class Dry::Monads::Result::Fixed < Module
|
597
596
|
def included(base); end
|
598
|
-
def initialize(error, **options); end
|
599
|
-
def self.[](error, **options); end
|
600
|
-
end
|
601
|
-
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
602
|
-
# srb rbi gems
|
603
|
-
|
604
|
-
# typed: true
|
605
|
-
#
|
606
|
-
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
607
|
-
#
|
608
|
-
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/dry-monads/all/dry-monads.rbi
|
609
|
-
#
|
610
|
-
# dry-monads-1.3.5
|
611
|
-
module Dry
|
612
|
-
end
|
613
|
-
module Dry::Monads
|
614
|
-
def self.Result(error, **options); end
|
615
|
-
def self.[](*monads); end
|
616
|
-
def self.all_loaded?; end
|
617
|
-
def self.constructors; end
|
618
|
-
def self.included(base); end
|
619
|
-
def self.known_monads; end
|
620
|
-
def self.load_monad(name); end
|
621
|
-
def self.register_mixin(name, mod); end
|
622
|
-
def self.registry; end
|
623
|
-
def self.registry=(registry); end
|
624
|
-
extend Dry::Monads::Maybe::Mixin::Constructors
|
625
|
-
extend Dry::Monads::Maybe::Mixin::Constructors
|
626
|
-
extend Dry::Monads::Result::Mixin::Constructors
|
627
|
-
extend Dry::Monads::Validated::Mixin::Constructors
|
628
|
-
include Dry::Core::Constants
|
629
|
-
end
|
630
|
-
module Dry::Monads::Curry
|
631
|
-
def self.call(value); end
|
632
|
-
end
|
633
|
-
class Dry::Monads::UnwrapError < StandardError
|
634
|
-
def initialize(ctx); end
|
635
|
-
end
|
636
|
-
class Dry::Monads::InvalidFailureTypeError < StandardError
|
637
|
-
def initialize(failure); end
|
638
|
-
end
|
639
|
-
class Dry::Monads::ConstructorNotAppliedError < NoMethodError
|
640
|
-
def initialize(method_name, constructor_name); end
|
641
|
-
end
|
642
|
-
module Dry::Monads::RightBiased
|
643
|
-
end
|
644
|
-
module Dry::Monads::RightBiased::Right
|
645
|
-
def ===(other); end
|
646
|
-
def and(mb); end
|
647
|
-
def apply(val = nil); end
|
648
|
-
def bind(*args, **kwargs); end
|
649
|
-
def curry; end
|
650
|
-
def deconstruct; end
|
651
|
-
def deconstruct_keys(keys); end
|
652
|
-
def destructure(*args, **kwargs); end
|
653
|
-
def discard; end
|
654
|
-
def flatten; end
|
655
|
-
def fmap(*arg0); end
|
656
|
-
def or(*arg0); end
|
657
|
-
def or_fmap(*arg0); end
|
658
|
-
def self.included(m); end
|
659
|
-
def tee(*args, &block); end
|
660
|
-
def value!; end
|
661
|
-
def value_or(_val = nil); end
|
662
|
-
end
|
663
|
-
module Dry::Monads::RightBiased::Left
|
664
|
-
def and(_); end
|
665
|
-
def apply(*arg0); end
|
666
|
-
def bind(*arg0); end
|
667
|
-
def deconstruct; end
|
668
|
-
def deconstruct_keys(keys); end
|
669
|
-
def discard; end
|
670
|
-
def flatten; end
|
671
|
-
def fmap(*arg0); end
|
672
|
-
def or(*arg0); end
|
673
|
-
def or_fmap(*arg0); end
|
674
|
-
def self.trace_caller; end
|
675
|
-
def tee(*arg0); end
|
676
|
-
def value!; end
|
677
|
-
def value_or(val = nil); end
|
678
|
-
end
|
679
|
-
module Dry::Monads::Transformer
|
680
|
-
def fmap2(*args); end
|
681
|
-
def fmap3(*args); end
|
682
|
-
end
|
683
|
-
class Dry::Monads::Maybe
|
684
|
-
def failure?; end
|
685
|
-
def monad; end
|
686
|
-
def none?; end
|
687
|
-
def self.coerce(value); end
|
688
|
-
def self.lift(*args, &block); end
|
689
|
-
def self.pure(value = nil, &block); end
|
690
|
-
def self.to_proc; end
|
691
|
-
def some?; end
|
692
|
-
def success?; end
|
693
|
-
def to_maybe; end
|
694
|
-
def to_monad; end
|
695
|
-
include Dry::Monads::Transformer
|
696
|
-
end
|
697
|
-
class Dry::Monads::Maybe::Some < Dry::Monads::Maybe
|
698
|
-
def fmap(*args, &block); end
|
699
|
-
def initialize(value = nil); end
|
700
|
-
def inspect; end
|
701
|
-
def maybe(*args, &block); end
|
702
|
-
def self.[](*value); end
|
703
|
-
def self.call(*arg0); end
|
704
|
-
def self.to_proc; end
|
705
|
-
def to_result(_fail = nil); end
|
706
|
-
def to_s; end
|
707
|
-
include Anonymous_Dry_Equalizer_40
|
708
|
-
include Dry::Equalizer::Methods
|
709
|
-
include Dry::Monads::RightBiased::Right
|
710
|
-
end
|
711
|
-
module Anonymous_Dry_Equalizer_40
|
712
|
-
def cmp?(comparator, other); end
|
713
|
-
def hash; end
|
714
|
-
def inspect; end
|
715
|
-
end
|
716
|
-
class Dry::Monads::Maybe::None < Dry::Monads::Maybe
|
717
|
-
def ==(other); end
|
718
|
-
def deconstruct; end
|
719
|
-
def eql?(other); end
|
720
|
-
def hash; end
|
721
|
-
def initialize(trace = nil); end
|
722
|
-
def inspect; end
|
723
|
-
def maybe(*arg0); end
|
724
|
-
def or(*args); end
|
725
|
-
def or_fmap(*args, &block); end
|
726
|
-
def self.instance; end
|
727
|
-
def self.method_missing(m, *arg1); end
|
728
|
-
def to_result(fail = nil); end
|
729
|
-
def to_s; end
|
730
|
-
def trace; end
|
731
|
-
include Dry::Monads::RightBiased::Left
|
732
|
-
end
|
733
|
-
module Dry::Monads::Maybe::Mixin
|
734
|
-
include Dry::Monads::Maybe::Mixin::Constructors
|
735
|
-
end
|
736
|
-
module Dry::Monads::Maybe::Mixin::Constructors
|
737
|
-
def Maybe(value); end
|
738
|
-
def None; end
|
739
|
-
def Some(value = nil, &block); end
|
740
|
-
end
|
741
|
-
module Dry::Monads::Maybe::Hash
|
742
|
-
def self.all(hash, trace = nil); end
|
743
|
-
def self.filter(hash); end
|
744
|
-
end
|
745
|
-
class Dry::Monads::Result
|
746
|
-
def failure; end
|
747
|
-
def monad; end
|
748
|
-
def self.pure(value = nil, &block); end
|
749
|
-
def success; end
|
750
|
-
def to_monad; end
|
751
|
-
def to_result; end
|
752
|
-
include Anonymous_Module_41
|
753
|
-
include Dry::Monads::Transformer
|
754
|
-
end
|
755
|
-
class Dry::Monads::Result::Success < Dry::Monads::Result
|
756
|
-
def either(f, _); end
|
757
|
-
def failure?; end
|
758
|
-
def flip; end
|
759
|
-
def fmap(*args, &block); end
|
760
|
-
def initialize(value); end
|
761
|
-
def inspect; end
|
762
|
-
def result(_, f); end
|
763
|
-
def self.[](*value); end
|
764
|
-
def self.call(*arg0); end
|
765
|
-
def self.to_proc; end
|
766
|
-
def success; end
|
767
|
-
def success?; end
|
768
|
-
def to_maybe; end
|
769
|
-
def to_s; end
|
770
|
-
def to_validated; end
|
771
|
-
include Anonymous_Dry_Equalizer_42
|
772
|
-
include Dry::Equalizer::Methods
|
773
|
-
include Dry::Monads::RightBiased::Right
|
774
|
-
end
|
775
|
-
class Dry::Monads::Result::Failure < Dry::Monads::Result
|
776
|
-
def ===(other); end
|
777
|
-
def either(_, g); end
|
778
|
-
def failure; end
|
779
|
-
def failure?; end
|
780
|
-
def flip; end
|
781
|
-
def initialize(value, trace = nil); end
|
782
|
-
def inspect; end
|
783
|
-
def or(*args); end
|
784
|
-
def or_fmap(*args, &block); end
|
785
|
-
def result(f, _); end
|
786
|
-
def self.[](*value); end
|
787
|
-
def self.call(*arg0); end
|
788
|
-
def self.to_proc; end
|
789
|
-
def success?; end
|
790
|
-
def to_maybe; end
|
791
|
-
def to_s; end
|
792
|
-
def to_validated; end
|
793
|
-
def trace; end
|
794
|
-
def value_or(val = nil); end
|
795
|
-
include Anonymous_Dry_Equalizer_43
|
796
|
-
include Dry::Equalizer::Methods
|
797
|
-
include Dry::Monads::RightBiased::Left
|
798
|
-
end
|
799
|
-
class Dry::Monads::Task
|
800
|
-
def ==(other); end
|
801
|
-
def apply(val = nil); end
|
802
|
-
def bind(&block); end
|
803
|
-
def compare_promises(x, y); end
|
804
|
-
def complete?; end
|
805
|
-
def curry(value); end
|
806
|
-
def discard; end
|
807
|
-
def fmap(&block); end
|
808
|
-
def initialize(promise); end
|
809
|
-
def inspect; end
|
810
|
-
def monad; end
|
811
|
-
def or(&block); end
|
812
|
-
def or_fmap(&block); end
|
813
|
-
def promise; end
|
814
|
-
def self.[](executor, &block); end
|
815
|
-
def self.failed(exc); end
|
816
|
-
def self.new(promise = nil, &block); end
|
817
|
-
def self.pure(value = nil, &block); end
|
818
|
-
def then(&block); end
|
819
|
-
def to_maybe; end
|
820
|
-
def to_monad; end
|
821
|
-
def to_result; end
|
822
|
-
def to_s; end
|
823
|
-
def value!; end
|
824
|
-
def value_or(&block); end
|
825
|
-
def wait(timeout = nil); end
|
826
|
-
include Anonymous_Module_44
|
827
|
-
end
|
828
|
-
class Dry::Monads::Try
|
829
|
-
def error?; end
|
830
|
-
def exception; end
|
831
|
-
def failure?; end
|
832
|
-
def self.[](*exceptions, &block); end
|
833
|
-
def self.lift(*args, &block); end
|
834
|
-
def self.pure(value = nil, exceptions = nil, &block); end
|
835
|
-
def self.run(exceptions, f); end
|
836
|
-
def success?; end
|
837
|
-
def to_monad; end
|
838
|
-
def value?; end
|
839
|
-
include Anonymous_Module_45
|
840
|
-
end
|
841
|
-
class Dry::Monads::Try::Value < Dry::Monads::Try
|
842
|
-
def bind(*args); end
|
843
|
-
def bind_call(*args, **kwargs); end
|
844
|
-
def catchable; end
|
845
|
-
def fmap(*args, &block); end
|
846
|
-
def initialize(exceptions, value); end
|
847
|
-
def inspect; end
|
848
|
-
def self.call(*arg0); end
|
849
|
-
def self.to_proc; end
|
850
|
-
def to_maybe; end
|
851
|
-
def to_result; end
|
852
|
-
def to_s; end
|
853
|
-
include Anonymous_Dry_Equalizer_46
|
854
|
-
include Dry::Equalizer::Methods
|
855
|
-
include Dry::Monads::RightBiased::Right
|
856
|
-
end
|
857
|
-
class Dry::Monads::Try::Error < Dry::Monads::Try
|
858
|
-
def ===(other); end
|
859
|
-
def initialize(exception); end
|
860
|
-
def inspect; end
|
861
|
-
def or(*args); end
|
862
|
-
def self.call(*arg0); end
|
863
|
-
def to_maybe; end
|
864
|
-
def to_result; end
|
865
|
-
def to_s; end
|
866
|
-
include Anonymous_Dry_Equalizer_47
|
867
|
-
include Dry::Equalizer::Methods
|
868
|
-
include Dry::Monads::RightBiased::Left
|
869
|
-
end
|
870
|
-
class Dry::Monads::Validated
|
871
|
-
def bind(*arg0); end
|
872
|
-
def self.pure(value = nil, &block); end
|
873
|
-
def to_monad; end
|
874
|
-
include Anonymous_Module_48
|
875
|
-
end
|
876
|
-
class Dry::Monads::Validated::Valid < Dry::Monads::Validated
|
877
|
-
def ===(other); end
|
878
|
-
def alt_map(_ = nil); end
|
879
|
-
def apply(val = nil); end
|
880
|
-
def fmap(proc = nil, &block); end
|
881
|
-
def initialize(value); end
|
882
|
-
def inspect; end
|
883
|
-
def or(_ = nil); end
|
884
|
-
def to_maybe; end
|
885
|
-
def to_result; end
|
886
|
-
def to_s; end
|
887
|
-
def value!; end
|
888
|
-
include Anonymous_Dry_Equalizer_49
|
889
|
-
include Dry::Equalizer::Methods
|
890
|
-
end
|
891
|
-
class Dry::Monads::Validated::Invalid < Dry::Monads::Validated
|
892
|
-
def ===(other); end
|
893
|
-
def alt_map(proc = nil, &block); end
|
894
|
-
def apply(val = nil); end
|
895
|
-
def error; end
|
896
|
-
def fmap(_ = nil); end
|
897
|
-
def initialize(error, trace = nil); end
|
898
|
-
def inspect; end
|
899
|
-
def or(proc = nil, &block); end
|
900
|
-
def to_maybe; end
|
901
|
-
def to_result; end
|
902
|
-
def to_s; end
|
903
|
-
def trace; end
|
904
|
-
include Anonymous_Dry_Equalizer_50
|
905
|
-
include Dry::Equalizer::Methods
|
906
|
-
end
|
907
|
-
module Dry::Monads::ConversionStubs
|
908
|
-
def self.[](*method_names); end
|
909
|
-
end
|
910
|
-
module Dry::Monads::ConversionStubs::Methods
|
911
|
-
def self.to_maybe; end
|
912
|
-
def self.to_result; end
|
913
|
-
def self.to_validated; end
|
914
|
-
def to_maybe; end
|
915
|
-
def to_result; end
|
916
|
-
def to_validated; end
|
917
|
-
end
|
918
|
-
class Dry::Monads::Task::Promise < Concurrent::Promise
|
919
|
-
def on_fulfill(result); end
|
920
|
-
def on_reject(reason); end
|
921
|
-
end
|
922
|
-
module Anonymous_Module_44
|
923
|
-
def to_maybe(*arg0); end
|
924
|
-
def to_result(*arg0); end
|
925
|
-
end
|
926
|
-
module Dry::Monads::Task::Mixin
|
927
|
-
def self.[](executor); end
|
928
|
-
include Dry::Monads::Task::Mixin::Constructors
|
929
|
-
end
|
930
|
-
module Dry::Monads::Task::Mixin::Constructors
|
931
|
-
def Task(&block); end
|
932
|
-
end
|
933
|
-
module Anonymous_Module_41
|
934
|
-
def to_maybe(*arg0); end
|
935
|
-
def to_validated(*arg0); end
|
936
|
-
end
|
937
|
-
module Anonymous_Dry_Equalizer_42
|
938
|
-
def cmp?(comparator, other); end
|
939
|
-
def hash; end
|
940
|
-
def inspect; end
|
941
|
-
end
|
942
|
-
module Anonymous_Dry_Equalizer_43
|
943
|
-
def cmp?(comparator, other); end
|
944
|
-
def hash; end
|
945
|
-
def inspect; end
|
946
|
-
end
|
947
|
-
module Dry::Monads::Result::Mixin
|
948
|
-
include Dry::Monads::Result::Mixin::Constructors
|
949
|
-
end
|
950
|
-
module Dry::Monads::Result::Mixin::Constructors
|
951
|
-
def Failure(value = nil, &block); end
|
952
|
-
def Success(value = nil, &block); end
|
953
|
-
end
|
954
|
-
module Anonymous_Module_45
|
955
|
-
def to_maybe(*arg0); end
|
956
|
-
def to_result(*arg0); end
|
957
|
-
end
|
958
|
-
module Anonymous_Dry_Equalizer_46
|
959
|
-
def cmp?(comparator, other); end
|
960
|
-
def hash; end
|
961
|
-
def inspect; end
|
962
|
-
end
|
963
|
-
module Anonymous_Dry_Equalizer_47
|
964
|
-
def cmp?(comparator, other); end
|
965
|
-
def hash; end
|
966
|
-
def inspect; end
|
967
|
-
end
|
968
|
-
module Dry::Monads::Try::Mixin
|
969
|
-
def Error(error = nil, &block); end
|
970
|
-
def Value(value = nil, exceptions = nil, &block); end
|
971
|
-
include Dry::Monads::Try::Mixin::Constructors
|
972
|
-
end
|
973
|
-
module Dry::Monads::Try::Mixin::Constructors
|
974
|
-
def Try(*exceptions, &f); end
|
975
|
-
end
|
976
|
-
module Anonymous_Module_48
|
977
|
-
def to_maybe(*arg0); end
|
978
|
-
def to_result(*arg0); end
|
979
|
-
end
|
980
|
-
module Anonymous_Dry_Equalizer_49
|
981
|
-
def cmp?(comparator, other); end
|
982
|
-
def hash; end
|
983
|
-
def inspect; end
|
984
|
-
end
|
985
|
-
module Anonymous_Dry_Equalizer_50
|
986
|
-
def cmp?(comparator, other); end
|
987
|
-
def hash; end
|
988
|
-
def inspect; end
|
989
|
-
end
|
990
|
-
module Dry::Monads::Validated::Mixin
|
991
|
-
include Dry::Monads::Validated::Mixin::Constructors
|
992
|
-
end
|
993
|
-
module Dry::Monads::Validated::Mixin::Constructors
|
994
|
-
def Invalid(value = nil, &block); end
|
995
|
-
def Valid(value = nil, &block); end
|
996
|
-
end
|
997
|
-
class Dry::Monads::List
|
998
|
-
def +(other); end
|
999
|
-
def apply(list = nil); end
|
1000
|
-
def bind(*args); end
|
1001
|
-
def coerce(other); end
|
1002
|
-
def collect; end
|
1003
|
-
def deconstruct; end
|
1004
|
-
def empty?; end
|
1005
|
-
def filter; end
|
1006
|
-
def first; end
|
1007
|
-
def fmap(*args); end
|
1008
|
-
def fold_left(initial); end
|
1009
|
-
def fold_right(initial); end
|
1010
|
-
def foldl(initial); end
|
1011
|
-
def foldr(initial); end
|
1012
|
-
def head; end
|
1013
|
-
def initialize(value, type = nil); end
|
1014
|
-
def inspect; end
|
1015
|
-
def last; end
|
1016
|
-
def map(&block); end
|
1017
|
-
def monad; end
|
1018
|
-
def reduce(initial); end
|
1019
|
-
def reverse; end
|
1020
|
-
def select; end
|
1021
|
-
def self.[](*values); end
|
1022
|
-
def self.coerce(value, type = nil); end
|
1023
|
-
def self.pure(value = nil, type = nil, &block); end
|
1024
|
-
def self.unfold(state, type = nil); end
|
1025
|
-
def size; end
|
1026
|
-
def sort; end
|
1027
|
-
def tail; end
|
1028
|
-
def to_a; end
|
1029
|
-
def to_ary; end
|
1030
|
-
def to_monad; end
|
1031
|
-
def to_s; end
|
1032
|
-
def traverse(proc = nil, &block); end
|
1033
|
-
def type; end
|
1034
|
-
def typed(type = nil); end
|
1035
|
-
def typed?; end
|
1036
|
-
def value; end
|
1037
|
-
extend Anonymous_Dry_Core_Deprecations_Tagged_51
|
1038
|
-
extend Dry::Core::Deprecations::Interface
|
1039
|
-
include Anonymous_Dry_Equalizer_52
|
1040
|
-
include Dry::Equalizer::Methods
|
1041
|
-
include Dry::Monads::Transformer
|
1042
|
-
end
|
1043
|
-
module Anonymous_Dry_Core_Deprecations_Tagged_51
|
1044
|
-
end
|
1045
|
-
module Anonymous_Dry_Equalizer_52
|
1046
|
-
def cmp?(comparator, other); end
|
1047
|
-
def hash; end
|
1048
|
-
def inspect; end
|
1049
|
-
end
|
1050
|
-
class Dry::Monads::List::ListBuilder
|
1051
|
-
def [](*args); end
|
1052
|
-
def coerce(value); end
|
1053
|
-
def initialize(type); end
|
1054
|
-
def pure(val = nil, &block); end
|
1055
|
-
def self.[](*arg0); end
|
1056
|
-
def type; end
|
1057
|
-
end
|
1058
|
-
module Dry::Monads::List::Mixin
|
1059
|
-
def List(value); end
|
1060
|
-
end
|
1061
|
-
module Dry::Monads::Do
|
1062
|
-
def self.coerce_to_monad(monads); end
|
1063
|
-
def self.for(*methods); end
|
1064
|
-
def self.halt(result); end
|
1065
|
-
def self.included(base); end
|
1066
|
-
def self.wrap_method(target, method_name); end
|
1067
|
-
extend Dry::Monads::Do::Mixin
|
1068
|
-
end
|
1069
|
-
module Dry::Monads::Do::Mixin
|
1070
|
-
def bind(monads); end
|
1071
|
-
def call; end
|
1072
|
-
end
|
1073
|
-
class Dry::Monads::Do::Halt < StandardError
|
1074
|
-
def initialize(result); end
|
1075
|
-
def result; end
|
1076
|
-
end
|
1077
|
-
module Dry::Monads::Do::All
|
1078
|
-
def self.included(base); end
|
1079
|
-
extend Dry::Monads::Do::All::InstanceMixin
|
1080
|
-
end
|
1081
|
-
class Dry::Monads::Do::All::MethodTracker < Module
|
1082
|
-
def extend_object(target); end
|
1083
|
-
def initialize(wrappers); end
|
1084
|
-
def wrap_method(target, method); end
|
1085
|
-
def wrappers; end
|
1086
|
-
end
|
1087
|
-
module Dry::Monads::Do::All::InstanceMixin
|
1088
|
-
def extended(object); end
|
1089
|
-
end
|
1090
|
-
class Dry::Monads::Lazy < Dry::Monads::Task
|
1091
|
-
def force!; end
|
1092
|
-
def force; end
|
1093
|
-
def inspect; end
|
1094
|
-
def self.[](executor, &block); end
|
1095
|
-
def self.new(promise = nil, &block); end
|
1096
|
-
def to_s; end
|
1097
|
-
def value!; end
|
1098
|
-
end
|
1099
|
-
module Dry::Monads::Lazy::Mixin
|
1100
|
-
include Dry::Monads::Lazy::Mixin::Constructors
|
1101
|
-
end
|
1102
|
-
module Dry::Monads::Lazy::Mixin::Constructors
|
1103
|
-
def Lazy(&block); end
|
1104
|
-
end
|
1105
|
-
class Dry::Monads::Result::Fixed < Module
|
1106
|
-
def included(base); end
|
1107
|
-
def initialize(error, **_options); end
|
1108
597
|
def self.[](error, **options); end
|
1109
598
|
end
|
@@ -8,14 +8,14 @@ namespace :dry_monads_sorbet do
|
|
8
8
|
task :update_rbi do
|
9
9
|
FileUtils.rm_rf(dry_monads_sorbet_rbi_path)
|
10
10
|
|
11
|
-
|
11
|
+
dry_monads_sorbet_copy_bundled_rbi('dry-monads.rbi')
|
12
12
|
end
|
13
13
|
|
14
14
|
def dry_monads_sorbet_rbi_path
|
15
15
|
Pathname.new(Rake.original_dir).join('sorbet', 'dry-monads-sorbet')
|
16
16
|
end
|
17
17
|
|
18
|
-
def
|
18
|
+
def dry_monads_sorbet_copy_bundled_rbi(filename)
|
19
19
|
bundled_rbi_file_path = File.join(DRY_MONADS_SORBET_RAKE_DIR, '..', '..', 'bundled_rbi', filename)
|
20
20
|
copy_to_path = dry_monads_sorbet_rbi_path.join(filename)
|
21
21
|
FileUtils.mkdir_p(File.dirname(copy_to_path))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-monads-sorbet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Worth
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet
|
@@ -136,7 +136,6 @@ files:
|
|
136
136
|
- lib/dry-monads-sorbet/tasks/dry_monads_sorbet.rake
|
137
137
|
- lib/dry/monads/sorbet.rb
|
138
138
|
- lib/dry/monads/sorbet/version.rb
|
139
|
-
- rbi/dry-monads.rbi
|
140
139
|
homepage: https://github.com/tricycle/dry-monads-sorbet
|
141
140
|
licenses:
|
142
141
|
- MIT
|
data/rbi/dry-monads.rbi
DELETED
@@ -1,593 +0,0 @@
|
|
1
|
-
# typed: strong
|
2
|
-
#
|
3
|
-
# dry-monads-1.3.1
|
4
|
-
#
|
5
|
-
# Note: This file depends on dry/monads/sorbet to define generics.
|
6
|
-
|
7
|
-
module Dry
|
8
|
-
end
|
9
|
-
module Dry::Monads
|
10
|
-
def self.Result(error, **options); end
|
11
|
-
def self.[](*monads); end
|
12
|
-
def self.all_loaded?; end
|
13
|
-
def self.constructors; end
|
14
|
-
def self.included(base); end
|
15
|
-
def self.known_monads; end
|
16
|
-
def self.load_monad(name); end
|
17
|
-
def self.register_mixin(name, mod); end
|
18
|
-
def self.registry; end
|
19
|
-
def self.registry=(registry); end
|
20
|
-
extend Dry::Monads::Maybe::Mixin::Constructors
|
21
|
-
extend Dry::Monads::Maybe::Mixin::Constructors
|
22
|
-
extend Dry::Monads::Result::Mixin::Constructors
|
23
|
-
extend Dry::Monads::Validated::Mixin::Constructors
|
24
|
-
end
|
25
|
-
module Dry::Monads::Curry
|
26
|
-
def self.call(value); end
|
27
|
-
end
|
28
|
-
class Dry::Monads::UnwrapError < StandardError
|
29
|
-
def initialize(ctx); end
|
30
|
-
end
|
31
|
-
class Dry::Monads::InvalidFailureTypeError < StandardError
|
32
|
-
def initialize(failure); end
|
33
|
-
end
|
34
|
-
class Dry::Monads::ConstructorNotAppliedError < NoMethodError
|
35
|
-
def initialize(method_name, constructor_name); end
|
36
|
-
end
|
37
|
-
module Dry::Monads::Transformer
|
38
|
-
def fmap2(*args); end
|
39
|
-
def fmap3(*args); end
|
40
|
-
end
|
41
|
-
class Dry::Monads::Maybe
|
42
|
-
extend T::Helpers
|
43
|
-
abstract!
|
44
|
-
sealed!
|
45
|
-
|
46
|
-
sig do
|
47
|
-
type_parameters(:New)
|
48
|
-
.params(blk: T.proc.params(arg0: Elem).returns(Dry::Monads::Maybe[T.type_parameter(:out, :New)]))
|
49
|
-
.returns(Dry::Monads::Maybe[T.type_parameter(:out, :New)])
|
50
|
-
end
|
51
|
-
def bind(&blk); end
|
52
|
-
|
53
|
-
sig do
|
54
|
-
type_parameters(:New)
|
55
|
-
.params(blk: T.proc.params(arg0: Elem).returns(T.type_parameter(:out, :New)))
|
56
|
-
.returns(Dry::Monads::Maybe[T.type_parameter(:out, :New)])
|
57
|
-
end
|
58
|
-
def fmap(&blk); end
|
59
|
-
|
60
|
-
sig do
|
61
|
-
params(val: T.any(Elem, NilClass),
|
62
|
-
blk: T.nilable(T.proc.returns(Elem)))
|
63
|
-
.returns(Elem)
|
64
|
-
end
|
65
|
-
def value_or(val = nil, &blk); end
|
66
|
-
|
67
|
-
sig do
|
68
|
-
params(arg0: T.untyped)
|
69
|
-
.returns(T.self_type)
|
70
|
-
end
|
71
|
-
def or(*arg0); end
|
72
|
-
|
73
|
-
sig do
|
74
|
-
type_parameters(:Error)
|
75
|
-
.params(val: T.nilable(T.type_parameter(:Error)),
|
76
|
-
blk: T.nilable(T.proc.returns(T.type_parameter(:Error))))
|
77
|
-
.returns(Dry::Monads::Result[T.type_parameter(:out, :Error), Elem])
|
78
|
-
end
|
79
|
-
def to_result(val = nil, &blk); end
|
80
|
-
|
81
|
-
sig {returns(T::Boolean)}
|
82
|
-
def failure?; end
|
83
|
-
def monad; end
|
84
|
-
|
85
|
-
sig {returns(T::Boolean)}
|
86
|
-
def none?; end
|
87
|
-
def self.coerce(value); end
|
88
|
-
def self.lift(*args, &block); end
|
89
|
-
def self.pure(value = nil, &block); end
|
90
|
-
def self.to_proc; end
|
91
|
-
|
92
|
-
sig {returns(T::Boolean)}
|
93
|
-
def some?; end
|
94
|
-
|
95
|
-
sig {returns(T::Boolean)}
|
96
|
-
def success?; end
|
97
|
-
def to_maybe; end
|
98
|
-
def to_monad; end
|
99
|
-
include Dry::Monads::Transformer
|
100
|
-
end
|
101
|
-
class Dry::Monads::Maybe::Some < Dry::Monads::Maybe
|
102
|
-
extend T::Sig
|
103
|
-
extend T::Generic
|
104
|
-
Elem = type_member
|
105
|
-
|
106
|
-
sig {params(value: Elem).void}
|
107
|
-
def initialize(value = nil); end
|
108
|
-
|
109
|
-
sig do
|
110
|
-
returns(Elem)
|
111
|
-
end
|
112
|
-
def value!; end
|
113
|
-
|
114
|
-
def inspect; end
|
115
|
-
def maybe(*args, &block); end
|
116
|
-
def self.[](*value); end
|
117
|
-
def self.call(*arg0); end
|
118
|
-
def self.to_proc; end
|
119
|
-
def to_s; end
|
120
|
-
include Anonymous_Dry_Equalizer_33
|
121
|
-
include Dry::Equalizer::Methods
|
122
|
-
end
|
123
|
-
module Anonymous_Dry_Equalizer_33
|
124
|
-
def cmp?(comparator, other); end
|
125
|
-
def hash; end
|
126
|
-
def inspect; end
|
127
|
-
end
|
128
|
-
class Dry::Monads::Maybe::None < Dry::Monads::Maybe
|
129
|
-
extend T::Sig
|
130
|
-
extend T::Generic
|
131
|
-
Elem = type_member
|
132
|
-
|
133
|
-
def ==(other); end
|
134
|
-
def deconstruct; end
|
135
|
-
def eql?(other); end
|
136
|
-
def hash; end
|
137
|
-
sig {params().void}
|
138
|
-
def initialize(); end
|
139
|
-
def inspect; end
|
140
|
-
def maybe(*arg0); end
|
141
|
-
def or(*args); end
|
142
|
-
def or_fmap(*args, &block); end
|
143
|
-
def self.instance; end
|
144
|
-
def self.method_missing(m, *arg1); end
|
145
|
-
def to_s; end
|
146
|
-
def trace; end
|
147
|
-
include Dry::Core::Constants
|
148
|
-
end
|
149
|
-
module Dry::Monads::Maybe::Mixin
|
150
|
-
include Dry::Monads::Maybe::Mixin::Constructors
|
151
|
-
end
|
152
|
-
module Dry::Monads::Maybe::Mixin::Constructors
|
153
|
-
sig {type_parameters(:T).params(value: T.nilable(T.type_parameter(:T))).returns(Dry::Monads::Maybe[T.type_parameter(:T)])}
|
154
|
-
def Maybe(value); end
|
155
|
-
sig {type_parameters(:T).params().returns(Dry::Monads::Maybe[T.type_parameter(:out, :T)])}
|
156
|
-
def None; end
|
157
|
-
sig {type_parameters(:T).params(value: T.type_parameter(:T)).returns(Dry::Monads::Maybe[T.type_parameter(:T)])}
|
158
|
-
def Some(value = nil); end
|
159
|
-
end
|
160
|
-
module Dry::Monads::Maybe::Hash
|
161
|
-
def self.all(hash, trace = nil); end
|
162
|
-
def self.filter(hash); end
|
163
|
-
end
|
164
|
-
class Dry::Monads::Result
|
165
|
-
extend T::Helpers
|
166
|
-
abstract!
|
167
|
-
sealed!
|
168
|
-
|
169
|
-
sig do
|
170
|
-
type_parameters(:NewSuccessType)
|
171
|
-
.params(blk: T.proc.params(arg0: SuccessType).returns(Dry::Monads::Result[FailureType, T.type_parameter(:out, :NewSuccessType)]))
|
172
|
-
.returns(Dry::Monads::Result[FailureType, T.type_parameter(:out, :NewSuccessType)])
|
173
|
-
end
|
174
|
-
def bind(&blk); end
|
175
|
-
|
176
|
-
sig do
|
177
|
-
type_parameters(:New)
|
178
|
-
.params(blk: T.proc.params(arg0: SuccessType).returns(T.type_parameter(:out, :New)))
|
179
|
-
.returns(Dry::Monads::Result[FailureType, T.type_parameter(:out, :New)])
|
180
|
-
end
|
181
|
-
def fmap(&blk); end
|
182
|
-
|
183
|
-
sig do
|
184
|
-
type_parameters(:Val)
|
185
|
-
.params(val: T.nilable(T.type_parameter(:Val)), blk: T.nilable(T.proc.params(arg0: FailureType).returns(T.type_parameter(:Val))))
|
186
|
-
.returns(T.any(SuccessType, T.type_parameter(:Val)))
|
187
|
-
end
|
188
|
-
def value_or(val = nil, &blk); end
|
189
|
-
|
190
|
-
sig do
|
191
|
-
returns(SuccessType)
|
192
|
-
end
|
193
|
-
def value!; end
|
194
|
-
def to_maybe; end
|
195
|
-
def either(f, _); end
|
196
|
-
|
197
|
-
sig {returns(T::Boolean)}
|
198
|
-
def success?; end
|
199
|
-
|
200
|
-
sig {returns(T::Boolean)}
|
201
|
-
def failure?; end
|
202
|
-
|
203
|
-
sig {returns(FailureType)}
|
204
|
-
def failure; end
|
205
|
-
|
206
|
-
sig do
|
207
|
-
params(blk: T.proc.params(arg0: FailureType).returns(Dry::Monads::Result[FailureType, SuccessType]))
|
208
|
-
.returns(Dry::Monads::Result[FailureType, SuccessType])
|
209
|
-
end
|
210
|
-
def or(&blk); end
|
211
|
-
|
212
|
-
def monad; end
|
213
|
-
def self.pure(value = nil, &block); end
|
214
|
-
def success; end
|
215
|
-
def to_monad; end
|
216
|
-
def to_result; end
|
217
|
-
include Anonymous_Module_34
|
218
|
-
include Dry::Monads::Transformer
|
219
|
-
end
|
220
|
-
class Dry::Monads::Result::Success < Dry::Monads::Result
|
221
|
-
extend T::Sig
|
222
|
-
extend T::Generic
|
223
|
-
FailureType = type_member
|
224
|
-
SuccessType = type_member
|
225
|
-
|
226
|
-
def flip; end
|
227
|
-
def initialize(value); end
|
228
|
-
def inspect; end
|
229
|
-
def result(_, f); end
|
230
|
-
def self.[](*value); end
|
231
|
-
def self.call(*arg0); end
|
232
|
-
def self.to_proc; end
|
233
|
-
def success; end
|
234
|
-
def to_s; end
|
235
|
-
def to_validated; end
|
236
|
-
include Anonymous_Dry_Equalizer_35
|
237
|
-
include Dry::Equalizer::Methods
|
238
|
-
end
|
239
|
-
class Dry::Monads::Result::Failure < Dry::Monads::Result
|
240
|
-
extend T::Sig
|
241
|
-
extend T::Generic
|
242
|
-
FailureType = type_member
|
243
|
-
SuccessType = type_member
|
244
|
-
|
245
|
-
def ===(other); end
|
246
|
-
def failure; end
|
247
|
-
def flip; end
|
248
|
-
def initialize(value, trace = nil); end
|
249
|
-
def inspect; end
|
250
|
-
def or_fmap(*args, &block); end
|
251
|
-
def result(f, _); end
|
252
|
-
def self.[](*value); end
|
253
|
-
def self.call(*arg0); end
|
254
|
-
def self.to_proc; end
|
255
|
-
def to_s; end
|
256
|
-
def to_validated; end
|
257
|
-
def trace; end
|
258
|
-
def value_or(val = nil); end
|
259
|
-
include Anonymous_Dry_Equalizer_36
|
260
|
-
include Dry::Equalizer::Methods
|
261
|
-
end
|
262
|
-
class Dry::Monads::Task
|
263
|
-
def ==(other); end
|
264
|
-
def apply(val = nil); end
|
265
|
-
def bind(&block); end
|
266
|
-
def compare_promises(x, y); end
|
267
|
-
def complete?; end
|
268
|
-
def curry(value); end
|
269
|
-
def discard; end
|
270
|
-
def fmap(&block); end
|
271
|
-
def initialize(promise); end
|
272
|
-
def inspect; end
|
273
|
-
def monad; end
|
274
|
-
def or(&block); end
|
275
|
-
def or_fmap(&block); end
|
276
|
-
def promise; end
|
277
|
-
def self.[](executor, &block); end
|
278
|
-
def self.failed(exc); end
|
279
|
-
def self.new(promise = nil, &block); end
|
280
|
-
def self.pure(value = nil, &block); end
|
281
|
-
def then(&block); end
|
282
|
-
def to_maybe; end
|
283
|
-
def to_monad; end
|
284
|
-
def to_result; end
|
285
|
-
def to_s; end
|
286
|
-
def value!; end
|
287
|
-
def value_or(&block); end
|
288
|
-
def wait(timeout = nil); end
|
289
|
-
include Anonymous_Module_37
|
290
|
-
end
|
291
|
-
class Dry::Monads::Try
|
292
|
-
def error?; end
|
293
|
-
def exception; end
|
294
|
-
def failure?; end
|
295
|
-
def self.[](*exceptions, &block); end
|
296
|
-
def self.lift(*args, &block); end
|
297
|
-
def self.pure(value = nil, exceptions = nil, &block); end
|
298
|
-
def self.run(exceptions, f); end
|
299
|
-
def success?; end
|
300
|
-
def to_monad; end
|
301
|
-
def value?; end
|
302
|
-
include Anonymous_Module_38
|
303
|
-
end
|
304
|
-
class Dry::Monads::Try::Value < Dry::Monads::Try
|
305
|
-
extend T::Generic
|
306
|
-
FailureType = type_member
|
307
|
-
SuccessType = type_member
|
308
|
-
|
309
|
-
def bind(*args); end
|
310
|
-
def bind_call(*args, **kwargs); end
|
311
|
-
def catchable; end
|
312
|
-
def fmap(*args, &block); end
|
313
|
-
def initialize(exceptions, value); end
|
314
|
-
def inspect; end
|
315
|
-
def self.call(*arg0); end
|
316
|
-
def self.to_proc; end
|
317
|
-
def to_maybe; end
|
318
|
-
def to_result; end
|
319
|
-
def to_s; end
|
320
|
-
include Anonymous_Dry_Equalizer_39
|
321
|
-
include Dry::Equalizer::Methods
|
322
|
-
end
|
323
|
-
class Dry::Monads::Try::Error < Dry::Monads::Try
|
324
|
-
extend T::Generic
|
325
|
-
FailureType = type_member
|
326
|
-
SuccessType = type_member
|
327
|
-
|
328
|
-
def ===(other); end
|
329
|
-
def initialize(exception); end
|
330
|
-
def inspect; end
|
331
|
-
def or(*args); end
|
332
|
-
def self.call(*arg0); end
|
333
|
-
def to_maybe; end
|
334
|
-
def to_result; end
|
335
|
-
def to_s; end
|
336
|
-
include Anonymous_Dry_Equalizer_40
|
337
|
-
include Dry::Equalizer::Methods
|
338
|
-
end
|
339
|
-
class Dry::Monads::Validated
|
340
|
-
def bind(*arg0); end
|
341
|
-
def self.pure(value = nil, &block); end
|
342
|
-
def to_monad; end
|
343
|
-
include Anonymous_Module_41
|
344
|
-
end
|
345
|
-
class Dry::Monads::Validated::Valid < Dry::Monads::Validated
|
346
|
-
def ===(other); end
|
347
|
-
def alt_map(_ = nil); end
|
348
|
-
def apply(val = nil); end
|
349
|
-
def fmap(proc = nil, &block); end
|
350
|
-
def initialize(value); end
|
351
|
-
def inspect; end
|
352
|
-
def or(_ = nil); end
|
353
|
-
def to_maybe; end
|
354
|
-
def to_result; end
|
355
|
-
def to_s; end
|
356
|
-
def value!; end
|
357
|
-
include Anonymous_Dry_Equalizer_42
|
358
|
-
include Dry::Equalizer::Methods
|
359
|
-
end
|
360
|
-
class Dry::Monads::Validated::Invalid < Dry::Monads::Validated
|
361
|
-
def ===(other); end
|
362
|
-
def alt_map(proc = nil, &block); end
|
363
|
-
def apply(val = nil); end
|
364
|
-
def error; end
|
365
|
-
def fmap(_ = nil); end
|
366
|
-
def initialize(error, trace = nil); end
|
367
|
-
def inspect; end
|
368
|
-
def or(proc = nil, &block); end
|
369
|
-
def to_maybe; end
|
370
|
-
def to_result; end
|
371
|
-
def to_s; end
|
372
|
-
def trace; end
|
373
|
-
include Anonymous_Dry_Equalizer_43
|
374
|
-
include Dry::Equalizer::Methods
|
375
|
-
end
|
376
|
-
module Dry::Monads::ConversionStubs
|
377
|
-
def self.[](*method_names); end
|
378
|
-
end
|
379
|
-
module Dry::Monads::ConversionStubs::Methods
|
380
|
-
def self.to_maybe; end
|
381
|
-
def self.to_result; end
|
382
|
-
def self.to_validated; end
|
383
|
-
def to_maybe; end
|
384
|
-
def to_result; end
|
385
|
-
def to_validated; end
|
386
|
-
end
|
387
|
-
class Dry::Monads::Task::Promise < Concurrent::Promise
|
388
|
-
def on_fulfill(result); end
|
389
|
-
def on_reject(reason); end
|
390
|
-
end
|
391
|
-
module Anonymous_Module_37
|
392
|
-
def to_maybe(*arg0); end
|
393
|
-
def to_result(*arg0); end
|
394
|
-
end
|
395
|
-
module Dry::Monads::Task::Mixin
|
396
|
-
def self.[](executor); end
|
397
|
-
include Dry::Monads::Task::Mixin::Constructors
|
398
|
-
end
|
399
|
-
module Dry::Monads::Task::Mixin::Constructors
|
400
|
-
def Task(&block); end
|
401
|
-
end
|
402
|
-
module Anonymous_Module_34
|
403
|
-
def to_maybe(*arg0); end
|
404
|
-
def to_validated(*arg0); end
|
405
|
-
end
|
406
|
-
module Anonymous_Dry_Equalizer_35
|
407
|
-
def cmp?(comparator, other); end
|
408
|
-
def hash; end
|
409
|
-
def inspect; end
|
410
|
-
end
|
411
|
-
module Anonymous_Dry_Equalizer_36
|
412
|
-
def cmp?(comparator, other); end
|
413
|
-
def hash; end
|
414
|
-
def inspect; end
|
415
|
-
end
|
416
|
-
module Dry::Monads::Result::Mixin
|
417
|
-
include Dry::Monads::Result::Mixin::Constructors
|
418
|
-
end
|
419
|
-
module Dry::Monads::Result::Mixin::Constructors
|
420
|
-
sig do
|
421
|
-
type_parameters(:FailureType, :SuccessType)
|
422
|
-
.params(value: T.nilable(T.type_parameter(:FailureType)),
|
423
|
-
block: T.nilable(T.untyped))
|
424
|
-
.returns(Dry::Monads::Result[T.type_parameter(:FailureType),
|
425
|
-
T.type_parameter(:out, :SuccessType)])
|
426
|
-
end
|
427
|
-
def Failure(value = nil, &block); end
|
428
|
-
|
429
|
-
sig do
|
430
|
-
type_parameters(:FailureType, :SuccessType)
|
431
|
-
.params(value: T.nilable(T.type_parameter(:SuccessType)),
|
432
|
-
block: T.nilable(T.untyped))
|
433
|
-
.returns(Dry::Monads::Result[T.type_parameter(:out, :FailureType),
|
434
|
-
T.type_parameter(:SuccessType)])
|
435
|
-
end
|
436
|
-
def Success(value = nil, &block); end
|
437
|
-
end
|
438
|
-
module Anonymous_Module_38
|
439
|
-
def to_maybe(*arg0); end
|
440
|
-
def to_result(*arg0); end
|
441
|
-
end
|
442
|
-
module Anonymous_Dry_Equalizer_39
|
443
|
-
def cmp?(comparator, other); end
|
444
|
-
def hash; end
|
445
|
-
def inspect; end
|
446
|
-
end
|
447
|
-
module Anonymous_Dry_Equalizer_40
|
448
|
-
def cmp?(comparator, other); end
|
449
|
-
def hash; end
|
450
|
-
def inspect; end
|
451
|
-
end
|
452
|
-
module Dry::Monads::Try::Mixin
|
453
|
-
def Error(error = nil, &block); end
|
454
|
-
def Value(value = nil, exceptions = nil, &block); end
|
455
|
-
include Dry::Monads::Try::Mixin::Constructors
|
456
|
-
end
|
457
|
-
module Dry::Monads::Try::Mixin::Constructors
|
458
|
-
def Try(*exceptions, &f); end
|
459
|
-
end
|
460
|
-
module Anonymous_Module_41
|
461
|
-
def to_maybe(*arg0); end
|
462
|
-
def to_result(*arg0); end
|
463
|
-
end
|
464
|
-
module Anonymous_Dry_Equalizer_42
|
465
|
-
def cmp?(comparator, other); end
|
466
|
-
def hash; end
|
467
|
-
def inspect; end
|
468
|
-
end
|
469
|
-
module Anonymous_Dry_Equalizer_43
|
470
|
-
def cmp?(comparator, other); end
|
471
|
-
def hash; end
|
472
|
-
def inspect; end
|
473
|
-
end
|
474
|
-
module Dry::Monads::Validated::Mixin
|
475
|
-
include Dry::Monads::Validated::Mixin::Constructors
|
476
|
-
end
|
477
|
-
module Dry::Monads::Validated::Mixin::Constructors
|
478
|
-
def Invalid(value = nil, &block); end
|
479
|
-
def Valid(value = nil, &block); end
|
480
|
-
end
|
481
|
-
class Dry::Monads::List
|
482
|
-
def +(other); end
|
483
|
-
def apply(list = nil); end
|
484
|
-
def bind(*args); end
|
485
|
-
def coerce(other); end
|
486
|
-
def collect; end
|
487
|
-
def deconstruct; end
|
488
|
-
def empty?; end
|
489
|
-
def filter; end
|
490
|
-
def first; end
|
491
|
-
def fmap(*args); end
|
492
|
-
def fold_left(initial); end
|
493
|
-
def fold_right(initial); end
|
494
|
-
def foldl(initial); end
|
495
|
-
def foldr(initial); end
|
496
|
-
def head; end
|
497
|
-
def initialize(value, type = nil); end
|
498
|
-
def inspect; end
|
499
|
-
def last; end
|
500
|
-
def map(&block); end
|
501
|
-
def monad; end
|
502
|
-
def reduce(initial); end
|
503
|
-
def reverse; end
|
504
|
-
def select; end
|
505
|
-
def self.[](*values); end
|
506
|
-
def self.coerce(value, type = nil); end
|
507
|
-
def self.pure(value = nil, type = nil, &block); end
|
508
|
-
def self.unfold(state, type = nil); end
|
509
|
-
def size; end
|
510
|
-
def sort; end
|
511
|
-
def tail; end
|
512
|
-
def to_a; end
|
513
|
-
def to_ary; end
|
514
|
-
def to_monad; end
|
515
|
-
def to_s; end
|
516
|
-
def traverse(proc = nil, &block); end
|
517
|
-
def type; end
|
518
|
-
def typed(type = nil); end
|
519
|
-
def typed?; end
|
520
|
-
def value; end
|
521
|
-
extend Anonymous_Dry_Core_Deprecations_Tagged_44
|
522
|
-
extend Dry::Core::Deprecations::Interface
|
523
|
-
include Anonymous_Dry_Equalizer_45
|
524
|
-
include Dry::Equalizer::Methods
|
525
|
-
include Dry::Monads::Transformer
|
526
|
-
end
|
527
|
-
module Anonymous_Dry_Core_Deprecations_Tagged_44
|
528
|
-
end
|
529
|
-
module Anonymous_Dry_Equalizer_45
|
530
|
-
def cmp?(comparator, other); end
|
531
|
-
def hash; end
|
532
|
-
def inspect; end
|
533
|
-
end
|
534
|
-
class Dry::Monads::List::ListBuilder
|
535
|
-
def [](*args); end
|
536
|
-
def coerce(value); end
|
537
|
-
def initialize(type); end
|
538
|
-
def pure(val = nil, &block); end
|
539
|
-
def self.[](*arg0); end
|
540
|
-
def type; end
|
541
|
-
end
|
542
|
-
module Dry::Monads::List::Mixin
|
543
|
-
def List(value); end
|
544
|
-
end
|
545
|
-
module Dry::Monads::Do
|
546
|
-
def self.coerce_to_monad(monads); end
|
547
|
-
def self.for(*methods); end
|
548
|
-
def self.halt(result); end
|
549
|
-
def self.included(base); end
|
550
|
-
def self.wrap_method(target, method_name); end
|
551
|
-
extend Dry::Monads::Do::Mixin
|
552
|
-
end
|
553
|
-
module Dry::Monads::Do::Mixin
|
554
|
-
def bind(monads); end
|
555
|
-
def call; end
|
556
|
-
end
|
557
|
-
class Dry::Monads::Do::Halt < StandardError
|
558
|
-
def initialize(result); end
|
559
|
-
def result; end
|
560
|
-
end
|
561
|
-
module Dry::Monads::Do::All
|
562
|
-
def self.included(base); end
|
563
|
-
extend Dry::Monads::Do::All::InstanceMixin
|
564
|
-
end
|
565
|
-
class Dry::Monads::Do::All::MethodTracker < Module
|
566
|
-
def extend_object(target); end
|
567
|
-
def initialize(wrappers); end
|
568
|
-
def wrap_method(target, method); end
|
569
|
-
def wrappers; end
|
570
|
-
end
|
571
|
-
module Dry::Monads::Do::All::InstanceMixin
|
572
|
-
def extended(object); end
|
573
|
-
end
|
574
|
-
class Dry::Monads::Lazy < Dry::Monads::Task
|
575
|
-
def force!; end
|
576
|
-
def force; end
|
577
|
-
def inspect; end
|
578
|
-
def self.[](executor, &block); end
|
579
|
-
def self.new(promise = nil, &block); end
|
580
|
-
def to_s; end
|
581
|
-
def value!; end
|
582
|
-
end
|
583
|
-
module Dry::Monads::Lazy::Mixin
|
584
|
-
include Dry::Monads::Lazy::Mixin::Constructors
|
585
|
-
end
|
586
|
-
module Dry::Monads::Lazy::Mixin::Constructors
|
587
|
-
def Lazy(&block); end
|
588
|
-
end
|
589
|
-
class Dry::Monads::Result::Fixed < Module
|
590
|
-
def included(base); end
|
591
|
-
def initialize(error, **options); end
|
592
|
-
def self.[](error, **options); end
|
593
|
-
end
|