Sha256: 7d706066b22592cdacce03c5a13fe08f026b58306548562ea94d5cefa32228f6
Contents?: true
Size: 492 Bytes
Versions: 56
Compression:
Stored size: 492 Bytes
Contents
# frozen_string_literal: true module RBS class Constant attr_reader :name attr_reader :type attr_reader :entry def initialize(name:, type:, entry:) @name = name @type = type @entry = entry end def ==(other) other.is_a?(Constant) && other.name == name && other.type == type && other.entry == entry end alias eql? == def hash self.class.hash ^ name.hash ^ type.hash ^ entry.hash end end end
Version data entries
56 entries across 56 versions & 2 rubygems