Current Path : /usr/lib/ruby/gems/3.0.0/gems/rbs-1.0.4/lib/rbs/ |
Current File : //usr/lib/ruby/gems/3.0.0/gems/rbs-1.0.4/lib/rbs/constant.rb |
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