Sha256: 1c1cac985b2b4cc64a2d58be97d28b70c0be017d05d18b7a96852b3e35462b15

Contents?: true

Size: 1.75 KB

Versions: 4

Compression:

Stored size: 1.75 KB

Contents

class BCDD::Result::Expectations
  def self.mixin: (
    ?config: Hash[Symbol, Hash[Symbol, bool]],
    ?success: Hash[Symbol, untyped] | Array[Symbol],
    ?failure: Hash[Symbol, untyped] | Array[Symbol]
  ) -> Module

  def self.mixin!: (
    ?config: Hash[Symbol, Hash[Symbol, bool]],
    ?success: Hash[Symbol, untyped] | Array[Symbol],
    ?failure: Hash[Symbol, untyped] | Array[Symbol]
  ) -> Module

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

  def self.result_factory_without_expectations: -> singleton(BCDD::Result)

  def self.new: (
    ?source: untyped,
    ?contract: BCDD::Result::Contract::Evaluator,
    ?terminal: bool,
    **untyped
  ) -> (BCDD::Result::Expectations | untyped)

  def initialize: (
    ?source: untyped,
    ?contract: BCDD::Result::Contract::Evaluator,
    ?terminal: bool,
    **untyped
  ) -> void

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

  def with: (source: untyped) -> BCDD::Result::Expectations

  private

  def _ResultAs: (singleton(BCDD::Result), Symbol, untyped) -> untyped

  attr_reader source: untyped
  attr_reader contract: BCDD::Result::Contract::Evaluator
  attr_reader terminal: bool
end

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

  module Methods
    BASE: String
    FACTORY: String

    def self.to_eval: (Hash[Symbol, untyped]) -> String
  end

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

    module Given
      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

Version data entries

4 entries across 4 versions & 1 rubygems

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