Sha256: 53e92d595202eb266bd001592d28118c4429aa8251f45d51e304a9ba67324302

Contents?: true

Size: 476 Bytes

Versions: 10

Compression:

Stored size: 476 Bytes

Contents

module Steep
  module AST
    module Types
      class Any
        extend SharedInstance

        def ==(other)
          other.is_a?(Any)
        end

        def hash
          self.class.hash
        end

        alias eql? ==

        def subst(s)
          self
        end

        def to_s
          "untyped"
        end

        include Helper::NoFreeVariables

        include Helper::NoChild

        def level
          [1]
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
steep-1.9.1 lib/steep/ast/types/any.rb
steep-1.9.0 lib/steep/ast/types/any.rb
steep-1.9.0.dev.2 lib/steep/ast/types/any.rb
steep-1.9.0.dev.1 lib/steep/ast/types/any.rb
steep-1.8.3 lib/steep/ast/types/any.rb
steep-1.8.2 lib/steep/ast/types/any.rb
steep-1.8.1 lib/steep/ast/types/any.rb
steep-1.8.0 lib/steep/ast/types/any.rb
steep-1.8.0.pre.2 lib/steep/ast/types/any.rb
steep-1.8.0.pre.1 lib/steep/ast/types/any.rb