Sha256: 572fc63cd2385d9f7c031e7b6b7b50872ecbd8f460c021302a2d3a696ab8d5ad

Contents?: true

Size: 1.23 KB

Versions: 18

Compression:

Stored size: 1.23 KB

Contents

module Steep
  module AST
    module Builtin
      class Type
        attr_reader module_name: RBS::TypeName

        attr_reader arity: Integer

        def initialize: (String module_name, ?arity: ::Integer) -> void

        def instance_type: (*Types::t args, ?fill_untyped: bool) -> Types::Name::Instance

        def module_type: () -> Types::Name::Singleton

        def instance_type?: (Types::t `type`, ?args: Array[Types::t]?) -> Types::Name::Instance?

        def module_type?: (Types::t `type`) -> Types::Name::Singleton?
      end

      Object: Type

      BasicObject: Type

      Array: Type

      Range: Type

      Hash: Type

      Module: Type

      Class: Type

      Integer: Type

      Float: Type

      String: Type

      Symbol: Type

      TrueClass: Type

      FalseClass: Type

      Regexp: Type

      NilClass: Type

      Proc: Type

      def self.nil_type: () -> Types::Nil

      def self.any_type: () -> Types::Any

      def self.bool_type: () -> Types::Boolean

      def self.bottom_type: () -> Types::Bot

      def self.top_type: () -> Types::Top

      def self.optional: (Types::t) -> Types::t

      def self.true_type: () -> Types::Literal

      def self.false_type: () -> Types::Literal
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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