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

はじめてのRuby 第2章 / Ruby Practice 02

muttan
October 18, 2016

はじめてのRuby 第2章 / Ruby Practice 02

muttan

October 18, 2016
Tweet

More Decks by muttan

Other Decks in Programming

Transcript

  1. ഑ྻͷαΠζ w ഑ྻͷαΠζΛऔಘ͢Δʹ͸ɺ0CKTJ[Fͱͯ͠औ ಘ͢Δ͜ͱ͕Ͱ͖Δ JSC NBJO NJYFE< ͠  ·

     ΋  Μ> < ͠  ·  ΋  Μ> JSC NBJO QNJYFETJ[F  
  2. for i in 1..10 puts'hoge'.object_id end 83889020 83888970 83888940 83888910

    83888880 83888850 83888820 83888790 83888760 83888730 ίʔυ ग़ྗ ˢશ෦ҧ͏*%
  3. for i in 1..10 puts :hoge.object_id end 212008 212008 212008

    212008 212008 212008 212008 212008 212008 212008 ίʔυ ग़ྗ ˢશ෦ಉ͡*%
  4. ύλʔϯͱϚονϯά w 3VCZͰ͸ɺQBUUFSOͱ͍͏ܗͰਖ਼نදݱΛه ड़͢Δ ྫ ਖ਼نදݱ Ϛον͢Δจࣈྻ 3VCZ 3VCZ K3VCZ

    BCD3VCZIJK 3VCZJ SVCZ 36#: S6CZ 8<BFJPV>SE 8BSE 8FSE 8JSE 8PSE 8VSE <?BE> F G H I BEҎ֎ͷจࣈ
  5. ύλʔϯͱϚονϯά w ύλʔϯϚονΛߦ͏ࡍ͸
 
 ͱॻ͘Ϛονͨ͠৔߹͸ͦͷҐஔ Ϛον͠ͳ ͍৔߹͸OJM͕ฦΔ
 
 ྫ ਖ਼نදݱdϚονϯά͍ͨ͠จࣈྻ

    JSC NBJO 3VCZdK3VCZ  JSC NBJO 3VCZdKUVCZ OJM JSC NBJO 3VCZJdlKSVCZେจࣈখจࣈΛ۠ผ͠ͳ͍