--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: "Equality---Returns true if other_struct is equal to this one: they must be of the same class as generated by Struct::new, and the values of all instance variables must be equal (according to Object#==)."
- !ruby/struct:SM::Flow::VERB
body: " Customer = Struct.new(:name, :address, :zip)\n joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)\n joejr = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)\n jane = Customer.new("Jane Doe", "456 Elm, Anytown NC", 12345)\n joe == joejr #=> true\n joe == jane #=> false\n"
full_name: Struct#==
is_singleton: false
name: ==
params: |
struct == other_struct => true or false
visibility: public