Sha256: 009ffa58331121d182eff790377fb8d700a600c9d25f6f89b0599c288c74bc29

Contents?: true

Size: 819 Bytes

Versions: 1

Compression:

Stored size: 819 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[AST::Types::variable]

      def free_variables: () -> Set[AST::Types::variable]

      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

1 entries across 1 versions & 1 rubygems

Version Path
steep-1.7.0.dev.3 sig/steep/interface/block.rbs