class RBS::Constant
Attributes
entry[R]
name[R]
type[R]
Public Class Methods
new(name:, type:, entry:)
click to toggle source
# File rbs-2.1.0/lib/rbs/constant.rb, line 7 def initialize(name:, type:, entry:) @name = name @type = type @entry = entry end
Public Instance Methods
==(other)
click to toggle source
# File rbs-2.1.0/lib/rbs/constant.rb, line 13 def ==(other) other.is_a?(Constant) && other.name == name && other.type == type && other.entry == entry end
Also aliased as: eql?
hash()
click to toggle source
# File rbs-2.1.0/lib/rbs/constant.rb, line 22 def hash self.class.hash ^ name.hash ^ type.hash ^ entry.hash end