Sha256: ab72372fd423da7ab21f85067fb025a56166face85e6dc4e91e146abcd42af90

Contents?: true

Size: 791 Bytes

Versions: 17

Compression:

Stored size: 791 Bytes

Contents

module Steep
  module Interface
    class Block
      attr_reader type: Function

      attr_reader self_type: AST::Types::t?

      attr_reader optional: bool

      def initialize: (type: Function, self_type: AST::Types::t?, optional: bool) -> void

      def optional?: () -> bool

      def required?: () -> bool

      def to_optional: () -> Block

      def ==: (untyped other) -> bool

      alias eql? ==

      def hash: () -> Integer

      def closed?: () -> bool

      def subst: (Substitution s) -> Block

      @fvs: Set[Symbol]

      def free_variables: () -> Set[Symbol]

      def to_s: () -> ::String

      def map_type: () { (AST::Types::t) -> AST::Types::t } -> Block

      def +: (Block other) -> Block

      def to_proc_type: () -> AST::Types::t
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

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