Sha256: 6251f0426cd585462b7db4afb3c4b94a06c231d8ae155583aed5fde099d2cf82

Contents?: true

Size: 878 Bytes

Versions: 21

Compression:

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

    def relative: () -> InstanceMethodName
  end

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

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

    def relative: () -> SingletonMethodName
  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

21 entries across 21 versions & 1 rubygems

Version Path
steep-1.7.0.dev.3 sig/steep/method_name.rbs
steep-1.7.0.dev.2 sig/steep/method_name.rbs
steep-1.7.0.dev.1 sig/steep/method_name.rbs
steep-1.6.0 sig/steep/method_name.rbs
steep-1.6.0.pre.4 sig/steep/method_name.rbs
steep-1.6.0.pre.3 sig/steep/method_name.rbs
steep-1.6.0.pre.2 sig/steep/method_name.rbs
steep-1.6.0.pre.1 sig/steep/method_name.rbs
steep-1.5.3 sig/steep/method_name.rbs
steep-1.5.2 sig/steep/method_name.rbs
steep-1.5.1 sig/steep/method_name.rbs
steep-1.5.0 sig/steep/method_name.rbs
steep-1.5.0.pre.6 sig/steep/method_name.rbs
steep-1.5.0.pre.5 sig/steep/method_name.rbs
steep-1.5.0.pre.4 sig/steep/method_name.rbs
steep-1.5.0.pre.3 sig/steep/method_name.rbs
steep-1.5.0.pre.2 sig/steep/method_name.rbs
steep-1.5.0.pre.1 sig/steep/method_name.rbs
steep-1.4.0 sig/steep/method_name.rbs
steep-1.4.0.dev.5 sig/steep/method_name.rbs