Sha256: 1640d6e33b98bbdbbd724715af94feebcceffcad6afb7a1ee455d30751222c2a

Contents?: true

Size: 859 Bytes

Versions: 9

Compression:

Stored size: 859 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[untyped, untyped]?

    def initialize: (type_params: Array[Symbol], type: Types::Function, block: Types::Block?, location: Location[untyped, untyped]?) -> 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[untyped, untyped]?) -> 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

9 entries across 9 versions & 1 rubygems

Version Path
rbs-1.8.1 sig/method_types.rbs
rbs-1.8.0 sig/method_types.rbs
rbs-1.7.1 sig/method_types.rbs
rbs-1.7.0 sig/method_types.rbs
rbs-1.7.0.beta.5 sig/method_types.rbs
rbs-1.7.0.beta.4 sig/method_types.rbs
rbs-1.7.0.beta.3 sig/method_types.rbs
rbs-1.7.0.beta.2 sig/method_types.rbs
rbs-1.7.0.beta.1 sig/method_types.rbs