class RBS::Constant
Attributes
Public Class Methods
Source
# File bundled-src/rbs-3.10.0/lib/rbs/constant.rb, line 9 def initialize(name:, type:, entry:) @name = name @type = type @entry = entry end
Public Instance Methods
Source
# File bundled-src/rbs-3.10.0/lib/rbs/constant.rb, line 15 def ==(other) other.is_a?(Constant) && other.name == name && other.type == type && other.entry == entry end
Also aliased as: eql?
Source
# File bundled-src/rbs-3.10.0/lib/rbs/constant.rb, line 24 def hash self.class.hash ^ name.hash ^ type.hash ^ entry.hash end