Sha256: 1538e20f013eb87e0c5b71a1080c9c15bc3c50f14e0ab3dccf9989b7ac887e6c

Contents?: true

Size: 790 Bytes

Versions: 14

Compression:

Stored size: 790 Bytes

Contents

module Steep
  type method_name = InstanceMethodName | SingletonMethodName

  class InstanceMethodName
    attr_reader type_name: RBS::TypeName
    attr_reader method_name: Symbol

    def initialize: (type_name: RBS::TypeName, method_name: Symbol) -> void
  end

  class SingletonMethodName
    attr_reader type_name: RBS::TypeName
    attr_reader method_name: Symbol

    def initialize: (type_name: RBS::TypeName, method_name: Symbol) -> void
  end

  class ::Object
    # Returns method name corresponding to given `string`.
    #
    # * `ClassName#method_name` syntax returns an `InstanceMethodName` object
    # * `ClassName.method_name` syntax returns a `SingletonMethodName` object
    # 
    def MethodName: (String string) -> (InstanceMethodName | SingletonMethodName)
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
steep-1.4.0.dev.3 sig/steep/method_name.rbs
steep-1.3.2 sig/steep/method_name.rbs
steep-1.3.1 sig/steep/method_name.rbs
steep-1.4.0.dev.2 sig/steep/method_name.rbs
steep-1.4.0.dev.1 sig/steep/method_name.rbs
steep-1.3.0 sig/steep/method_name.rbs
steep-1.3.0.pre.2 sig/steep/method_name.rbs
steep-1.3.0.pre.1 sig/steep/method_name.rbs
steep-1.2.1 sig/steep/method_name.rbs
steep-1.2.0 sig/steep/method_name.rbs
steep-1.2.0.pre.1 sig/steep/method_name.rbs
steep-1.1.1 sig/steep/method_name.rbs
steep-1.1.0 sig/steep/method_name.rbs
steep-1.1.0.pre.1 sig/steep/method_name.rbs