Sha256: 7f3bcd57b801e6b016c594a3638da61cc23389cd5fba35185a2e2d3eded61293

Contents?: true

Size: 1.07 KB

Versions: 6

Compression:

Stored size: 1.07 KB

Contents

module RBS
  class MethodType
    class Block
      attr_reader type: Types::Function
      attr_reader required: bool

      def initialize: (type: Types::Function, required: boolish) -> void

      def ==: (untyped other) -> bool

      def to_json: (*untyped) -> String

      def sub: (Substitution) -> Block
    end

    attr_reader type_params: Array[Symbol]
    attr_reader type: Types::Function
    attr_reader block: Block?
    attr_reader location: Location?

    def initialize: (type_params: Array[Symbol], type: Types::Function, block: 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: 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

6 entries across 6 versions & 1 rubygems

Version Path
rbs-0.19.0 sig/method_types.rbs
rbs-0.18.1 sig/method_types.rbs
rbs-0.18.0 sig/method_types.rbs
rbs-0.17.0 sig/method_types.rbs
rbs-0.16.0 sig/method_types.rbs
rbs-0.15.0 sig/method_types.rbs