D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
lib
/
ruby
/
gems
/
3.0.0
/
gems
/
rbs-1.0.4
/
lib
/
rbs
/
Filename :
constant.rb
back
Copy
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