Upgrade to Pro — share decks privately, control downloads, hide ads and more …

はじめてのRuby 第12章 / Ruby Practice 12

muttan
November 29, 2016

はじめてのRuby 第12章 / Ruby Practice 12

muttan

November 29, 2016
Tweet

More Decks by muttan

Other Decks in Programming

Transcript

  1. w *OUFHFSΫϥεʢ  ͳͲʣ΍'MPBUΫϥε ʢ ͳͲʣ͸/VNFSJDΫϥεͷαϒΫϥε ͱͯ͠ఆٛ͞Ε͍ͯΔ /VNFSJDͷΫϥεߏ੒ /VNFSJD *OUFHFS

    ʢ੔਺ʣ 'JYOVN
 ʢ௨ৗͷ੔਺ʣ #JHOVN ʢେ͖ͳ੔਺ʣ 'MPBU
 ʢුಈখ਺఺ʣ 3BUJPOBM
 ʢ༗ཧ਺ʣ $PNQMFY ʢෳૉ਺ʣ
  2. w ௨ৗϓϩάϥϜͰѻ͏੔਺͸'JYOVNʹऩ·Δఔ౓ Ͱ͋Δ͕ ສ͕Ұ௒͑ͯ͠·ͬͯ΋ࣗಈతʹ#JHOVN Ϋϥεʹม׵͞ΕΔ /VNFSJDͷΫϥεߏ੒ JSC NBJO O 

     JSC NBJO ODMBTT 'JYOVN JSC NBJO N     ʜʢུʣ JSC NBJO NDMBTT #JHOVN
  3. w ਺஋ΦϒδΣΫτΛද͢Ϧςϥϧͷྫ ਺஋ͷϦςϥϧ Ϧςϥϧ ҙຯ  ੔਺ͷਐ਺දه  ੔਺ͷਐ਺දه Y

    ੔਺ͷਐ਺දه C ੔਺ͷਐ਺දه  ුಈখ਺఺਺ F ුಈখ਺఺਺ͷࢦ਺දه 1਺஋ΦϒδΣΫτͷϦςϥϧࢀর
  4. w ਺஋ΦϒδΣΫτΛද͢Ϧςϥϧͷྫ ਺஋ͷϦςϥϧ Ϧςϥϧ ҙຯ  ੔਺ͷਐ਺දه  ੔਺ͷਐ਺දه Y

    ੔਺ͷਐ਺දه C ੔਺ͷਐ਺දه  ුಈখ਺఺਺ F ුಈখ਺఺਺ͷࢦ਺දه 1਺஋ΦϒδΣΫτͷϦςϥϧࢀর
  5. w ʢআࢉʣ΍ʢ৒༨ʣҎ֎ʹ΋ আࢉΛߦ͏ํ๏͕͋Δ w YEJW Z 
 YΛZͰׂͬͨ੔਺ͷ঎Λฦ͢ w YRVP

    Z 
 YΛZͰׂͬͨ੔਺ͷ঎Λฦ͢੔਺ಉ࢜ͷԋࢉͷ৔߹ 3BUJPOBM ΦϒδΣΫτ͕ฦΔ w YNPEVMP Z 
 YΛZͰׂͬͨ༨ΓΛฦ͢ w YEJWNPE Z 
 YΛZͰׂͬͨͱ͖ͷ঎ͱ༨ΓΛ഑ྻʹͯ͠ฦ͢ আࢉ
  6. w YEJW Z 
 YΛZͰׂͬͨ੔਺ͷ঎Λฦ͢EJW͸ϝιουΛݺ ͼग़͠ qPPSΛऔΔ͜ͱͰܭࢉ͞ΕΔ w YRVP Z

    
 YΛZͰׂͬͨ੔਺ͷ঎Λฦ͢੔਺ಉ࢜ͷԋࢉͷ৔ ߹ 3BUJPOBMΦϒδΣΫτ͕ฦΔ আࢉ