・h_server.rb
h_client.rb
=> These codes can send messages from client to server. Run server ahead and run client.
If you do not use Mac OS ,
comment out the 'say ~~' line.
・hash_different.rb
=> This code enables you check the difference of two hashes.
hash1.diff(1,hash2)
means returning array which contains key belongs to only hash2
hash1.diff(2,hash2)
means returning hash which contains key belongs to both hash1 and hash2
Be carefull, this code returns array or hash ,so puts
or p
method is needed.