Sha256: 2b4b0d89728c7d378a224c0a4b15b4690927c85edd756924a661455fd783c5e1

Contents?: true

Size: 766 Bytes

Versions: 4

Compression:

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

      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

4 entries across 4 versions & 1 rubygems

Version Path
steep-1.4.0 sig/steep/interface/block.rbs
steep-1.4.0.dev.5 sig/steep/interface/block.rbs
steep-1.4.0.dev.4 sig/steep/interface/block.rbs
steep-1.4.0.dev.3 sig/steep/interface/block.rbs