Sha256: 6e99d76a3a8a8f7c42cd10a3c6abdc9b6ef62d2f02e6c7dd27583d7c66b81e1b

Contents?: true

Size: 823 Bytes

Versions: 13

Compression:

Stored size: 823 Bytes

Contents

module RBS
  class MethodType
    attr_reader type_params: Array[Symbol]
    attr_reader type: Types::Function
    attr_reader block: Types::Block?
    attr_reader location: Location?

    def initialize: (type_params: Array[Symbol], type: Types::Function, block: Types::Block?, location: Location?) -> void

    def ==: (untyped other) -> bool

    def to_json: (*untyped) -> String

    def sub: (Substitution) -> MethodType

    def update: (?type_params: Array[Symbol], ?type: Types::Function, ?block: Types::Block?, ?location: Location?) -> MethodType

    def free_variables: (?Set[Symbol] set) -> Set[Symbol]

    def map_type: () { (Types::t) -> Types::t } -> MethodType

    def each_type: () { (Types::t) -> void } -> void
                 | () -> Enumerator[Types::t, void]

    def to_s: () -> String
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rbs-1.1.1 sig/method_types.rbs
rbs-1.1.0 sig/method_types.rbs
rbs-1.0.6 sig/method_types.rbs
rbs-1.0.5 sig/method_types.rbs
rbs-1.0.4 sig/method_types.rbs
rbs-1.0.3 sig/method_types.rbs
rbs-1.0.2 sig/method_types.rbs
rbs-1.0.1 sig/method_types.rbs
rbs-1.0.0 sig/method_types.rbs
rbs-1.0.0.pre2 sig/method_types.rbs
rbs-1.0.0.pre sig/method_types.rbs
rbs-0.20.1 sig/method_types.rbs
rbs-0.20.0 sig/method_types.rbs