module Solargraph::Equality
@abstract This mixin relies on these -
methods: equality_fields()
Public Instance Methods
Source
# File lib/solargraph/equality.rb, line 21 def ==(other) self.eql?(other) end
@param other [Object] @return [Boolean]
Source
# File lib/solargraph/equality.rb, line 13 def eql?(other) self.class.eql?(other.class) && # @sg-ignore https://github.com/castwide/solargraph/pull/1114 equality_fields.eql?(other.equality_fields) end
@param other [Object] @return [Boolean]
Source
# File lib/solargraph/equality.rb, line 29 def freeze equality_fields.each(&:freeze) super end
Calls superclass method