Sha256: 4bb8fe2c21af780d7de9b8524ff2d8f56b7a4ae0eb6750d86f72038d107d6415
Contents?: true
Size: 787 Bytes
Versions: 2
Compression:
Stored size: 787 Bytes
Contents
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: "This function provided a "shortcut" for creating the #identity method based on given accessors and returns the Equatable module for inclusion." - !ruby/struct:SM::Flow::VERB body: " include Equatable(:a, :b)\n" - !ruby/struct:SM::Flow::P body: "is equivalent to including a module containing:" - !ruby/struct:SM::Flow::VERB body: " def ==(other)\n self.a == other.a && self.b == other.b\n end\n\n def eql?(other)\n self.a.eql?(other.a) && self.b.eql?(other.b)\n end\n\n def hash()\n self.a.hash ^ self.b.hash\n end\n" full_name: Module#Equatable is_singleton: false name: Equatable params: (*accessors) visibility: public
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facets-2.4.2 | doc/ri/Module/Equatable-i.yaml |
facets-2.4.3 | doc/ri/Module/Equatable-i.yaml |