Sha256: 97fdb4a3be4f1eb3a5ecfcabca09e2f76a4bd9c56200718ff73c48d359181d02

Contents?: true

Size: 1.19 KB

Versions: 9

Compression:

Stored size: 1.19 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]?) -> bool

        def module_type?: (Types::t `type`) -> bool
      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

9 entries across 9 versions & 1 rubygems

Version Path
steep-1.4.0 sig/steep/ast/builtin.rbs
steep-1.4.0.dev.5 sig/steep/ast/builtin.rbs
steep-1.4.0.dev.4 sig/steep/ast/builtin.rbs
steep-1.4.0.dev.3 sig/steep/ast/builtin.rbs
steep-1.3.2 sig/steep/ast/builtin.rbs
steep-1.3.1 sig/steep/ast/builtin.rbs
steep-1.4.0.dev.2 sig/steep/ast/builtin.rbs
steep-1.4.0.dev.1 sig/steep/ast/builtin.rbs
steep-1.3.0 sig/steep/ast/builtin.rbs