Sha256: 34909a9cbd49d6117e024d7705769b7cbf08a86ddaf56fb5fd51c37af7813d7f

Contents?: true

Size: 614 Bytes

Versions: 20

Compression:

Stored size: 614 Bytes

Contents

module RBS
  module UnitTest
    module Spy
      def self.wrap: [T] (untyped object, Symbol method_name) -> WrapSpy[T]
                   | [T, S] (untyped object, Symbol method_name) { (WrapSpy[T], T) -> S } -> S

      class WrapSpy[T]
        attr_accessor callback: ^(Test::CallTrace) -> void

        attr_reader object: T

        attr_reader method_name: Symbol

        def initialize: (object: T, method_name: Symbol) -> void

        def wrapped_object: () -> untyped
      end
    end
  end
end

class Proc
  def ruby2_keywords: () -> self
end

class Module
  def ruby2_keywords: (*Symbol) -> void
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rbs-3.7.0.dev.1 sig/unit_test/spy.rbs
rbs-3.6.1 sig/unit_test/spy.rbs
rbs-3.6.0 sig/unit_test/spy.rbs
rbs-3.6.0.pre.3 sig/unit_test/spy.rbs
rbs-3.6.0.pre.2 sig/unit_test/spy.rbs
rbs-3.6.0.pre.1 sig/unit_test/spy.rbs
rbs-3.6.0.dev.1 sig/unit_test/spy.rbs
rbs-3.5.3 sig/unit_test/spy.rbs
rbs-3.5.2 sig/unit_test/spy.rbs
rbs-3.5.1 sig/unit_test/spy.rbs
rbs-3.5.1.pre.1 sig/unit_test/spy.rbs
rbs-3.5.0 sig/unit_test/spy.rbs
rbs-3.5.0.pre.2 sig/unit_test/spy.rbs
rbs-3.5.0.pre.1 sig/unit_test/spy.rbs
rbs-3.4.4 sig/unit_test/spy.rbs
rbs-3.4.3 sig/unit_test/spy.rbs
rbs-3.4.2 sig/unit_test/spy.rbs
rbs-3.4.1 sig/unit_test/spy.rbs
rbs-3.4.0 sig/unit_test/spy.rbs
rbs-3.4.0.pre.1 sig/unit_test/spy.rbs