Sha256: c9b1dbce94f324d22da08616c131563621cc70da4de1a12c69379035308963b8

Contents?: true

Size: 805 Bytes

Versions: 12

Compression:

Stored size: 805 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

    include _ToJson

    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

12 entries across 12 versions & 1 rubygems

Version Path
rbs-1.6.2 sig/method_types.rbs
rbs-1.6.1 sig/method_types.rbs
rbs-1.6.0 sig/method_types.rbs
rbs-1.5.1 sig/method_types.rbs
rbs-1.5.0 sig/method_types.rbs
rbs-1.4.0 sig/method_types.rbs
rbs-1.3.3 sig/method_types.rbs
rbs-1.3.2 sig/method_types.rbs
rbs-1.3.1 sig/method_types.rbs
rbs-1.3.0 sig/method_types.rbs
rbs-1.2.1 sig/method_types.rbs
rbs-1.2.0 sig/method_types.rbs