Skip to content

shawkoike/ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruby

・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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages