Sha256: 0e0054e780e61c7fb2ff52bd6758f5f290dad6672bddb23de3f5716d624f1e34

Contents?: true

Size: 472 Bytes

Versions: 10

Compression:

Stored size: 472 Bytes

Contents

module Steep
  module AST
    module Types
      class Top
        extend SharedInstance

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

        def hash
          self.class.hash
        end

        alias eql? ==

        def subst(s)
          self
        end

        def to_s
          "top"
        end

        include Helper::NoFreeVariables

        include Helper::NoChild

        def level
          [2]
        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/top.rb
steep-1.9.0 lib/steep/ast/types/top.rb
steep-1.9.0.dev.2 lib/steep/ast/types/top.rb
steep-1.9.0.dev.1 lib/steep/ast/types/top.rb
steep-1.8.3 lib/steep/ast/types/top.rb
steep-1.8.2 lib/steep/ast/types/top.rb
steep-1.8.1 lib/steep/ast/types/top.rb
steep-1.8.0 lib/steep/ast/types/top.rb
steep-1.8.0.pre.2 lib/steep/ast/types/top.rb
steep-1.8.0.pre.1 lib/steep/ast/types/top.rb