Sha256: ee9960b070bb5a40e6701a4c01950266d64683d15f8eceed3c6915c29a322df5

Contents?: true

Size: 1 KB

Versions: 5

Compression:

Stored size: 1 KB

Contents

class BCDD::Result
  module Mixin
    module Factory
      def self.module!: -> Module
    end

    module Methods
      def Success: (Symbol type, ?untyped value) -> BCDD::Result::Success

      def Failure: (Symbol type, ?untyped value) -> BCDD::Result::Failure

      private

      def _ResultAs: (singleton(BCDD::Result), Symbol, untyped, ?terminal: bool) -> untyped
    end

    module Addons
      module Continue
        include BCDD::Result::Mixin::Methods

        private

        def Continue: (untyped) -> BCDD::Result::Success
      end

      module Given
        include BCDD::Result::Mixin::Methods

        private

        def Given: (untyped) -> BCDD::Result::Success
      end

      OPTIONS: Hash[Symbol, Module]

      def self.options: (Hash[Symbol, Hash[Symbol, bool]]) -> Hash[Symbol, Module]
    end
  end

  def self.mixin: (?config: Hash[Symbol, Hash[Symbol, bool]]) -> Module

  def self.mixin_module: -> singleton(BCDD::Result::Mixin)

  def self.result_factory: -> singleton(BCDD::Result)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bcdd-result-1.1.0 sig/bcdd/result/mixin.rbs
bcdd-result-1.0.0 sig/bcdd/result/mixin.rbs
bcdd-result-0.13.0 sig/bcdd/result/mixin.rbs
bcdd-result-0.12.0 sig/bcdd/result/mixin.rbs
bcdd-result-0.11.0 sig/bcdd/result/mixin.rbs