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

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

muttan
November 22, 2016

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

muttan

November 22, 2016
Tweet

More Decks by muttan

Other Decks in Programming

Transcript

  1. w ྫʣ഑ྻͷ֤ཁૉΛେจࣈʹͯ͠ग़ྗ͢Δ
 
 
 w ྫʣ)BTIͷ֤ཁૉΛऔΓग़͠ ߹ܭΛٻΊΔ
 
 
 


    )BTI͸<LFZ WBMVF>ͱ͍͏഑ྻ͕౉͞ΕΔ ܁Γฦ͠ 1IBTI@FBDISC࣮ߦ
  2. w ྫͷϓϩάϥϜ͸ ଟॏ୅ೖͷϧʔϧΛద༻͢ Δͱ ϒϩοΫม਺ͷड͚औΓํΛҎԼͷΑ͏ʹ ͢Δ͜ͱ΋Ͱ͖Δ
 
 
 
 w

    JUFN<LFZ WBMVF>
 LFZ WBMVFJUFNͱಉ͡ϧʔϧ ܁Γฦ͠ cJUFNcˠcLFZ WBMVFc 1IBTI@FBDISC࣮ߦ
  3. w ཁૉͷฒ΂ସ͑Λ͢ΔTPSU TPSU@CZϝιουΛ ྫʹߟ͑Δ w ιʔτͷج४͸༷ʑ͋ΔͨΊ ͦͷج४͝ͱʹιʔ τϝιουΛࢦఆ͍ͯͯ͠͸ϝιου਺͕ଟ͢ ͗Δ w

    ͦͷͨΊ"SSBZTPSU͸ ൺֱج४ΛϒϩοΫͰ ౉͢͜ͱͰ্هͷ໰୊ʹରԠ͍ͯ͠Δ ܭࢉͷҰ෦Λࠩ͠ସ͑ʢιʔτॱͷࢦఆʣ
  4. w Ҿ਺ແ͠Ͱ"SSBZTPSU ΛݺΜͩ৔߹ ԋࢉࢠͰൺֱ ͨ͠ॱʹͳΔ
 
 
 
 
 


    w จࣈྻͷ৔߹͸ࣙॻॱʹͳΔ w େจࣈখจࣈ͸େจࣈ͕༏ઌ͞ΕΔ ܭࢉͷҰ෦Λࠩ͠ସ͑ʢιʔτॱͷࢦఆʣ ৚݅ ݁Ռ BC ʢΑΓখ͍͞ʣ BC  BC ʢΑΓେ͖͍ʣ
  5. w "SSBZTPSUͷྫ
 
 w ͭ໨ͷ݁ՌʢBSSBZTPSUͷ৔߹ʣ͸ <lz  lz lz lz

    lz>ͱͳΔ w ͭ໨ͷ݁ՌʢϒϩοΫΛ౉ͨ͠৔߹ʣ͸<lz  lz lz lz lz>ͱͳΔ ܭࢉͷҰ෦Λࠩ͠ସ͑ʢιʔτॱͷࢦఆʣ
  6. w ޮ཰తʹιʔτ͍ͨ͠
 
 
 
 
 
 w ౓͚ͩMFOHUIϝιουΛݺͿΑ͏ʹ͍ͨ͠ ܭࢉͷҰ෦Λࠩ͠ସ͑

    ϒϩοΫ͕ճݺ͹Ε͍ͯͯ ݺ ͼग़͠ͰճMFOHUIϝιουΛ
 ݺͿͷͰਏ͍ 1TPSU@DPNQ@DPVOUSC࣮ߦ
  7. w ͦ͜ͰTPSU@CZϝιουΛར༻͢Δ
 
 
 
 
 w JUFNMFOHUIͷ෦෼ʹؔͯ͠͸ 0 O

    ʹͳΔͷͰ ޮ཰͕ྑ͍ʢ౓͚ͩࢀর͢Δ͜ͱʹͳΔʣ ܭࢉͷҰ෦Λࠩ͠ସ͑
  8. w ZJFMEͷҾ਺ͷ਺ͱϒϩοΫม਺ͷ਺͕ҧ͍ͬͯ ͯ΋ݺͼग़͢͜ͱ͕Ͱ͖Δ w ϒϩοΫม਺ͷ΄͏͕ଟ͍৔߹͸OJMͱͳΔ w ϒϩοΫม਺͕଍Γͳ͍৔߹͸ ஋Λड͚औΔ͜ ͱ͕Ͱ͖ͳ͍ ͱ͕ड͚औΕ͍ͯͳ͍ʣ

    ϒϩοΫม਺Λ౉͢ ݁ՌΛಘΔ 1CMPDL@BSHT@UFTUSC࣮ߦ ϒϩοΫม਺ΛcBcͰड͚औΔ <OJM>ZJFME  <>ZJFME   <>ZJFME   
  9. w 1SPDOFXϝιουʹϒϩοΫΛ౉͢͜ͱͰ ϒ ϩοΫͷΦϒδΣΫτΛ࡞੒͢Δ͜ͱ͕Ͱ͖Δ
 
 
 
 
 w DBMMϝιουͰݺͼग़͢ͱ

    ϒϩοΫʹॻ͔Εͨ ॲཧΛ࣮ߦ͢Δ͜ͱ͕Ͱ͖Δ ϒϩοΫΛΦϒδΣΫτͱͯ͠ड͚औΔ 1QSPDSC࣮ߦ