ۙ͝ॴ4/4ˍҬใϝσΟΞIUUQTNBDIJNBDIJDPN w ΤϯδχΞ࠾༻தʂIUUQTXXXXBOUFEMZDPNDPNQBOJFTNBDIJNBDIJJODQSPKFDUT w ϚνϚνΛࢧ͑Δٕज़$IUUQTUDP0.FIZ-:& 3BJMT 3FBDU 1PTUHSF42- ʜ w ٕज़ϒϩάIUUQTUFDINBDIJNBDIJDPN
procProc.newͱॻ͍ͯಉ͡ɺଞʹlambda͋Δ • block_given?ͰϒϩοΫ͕͞Ε͔ͨͲ͏͔ΛఆͰ͖ɺyieldͰݺͼग़ͤ Δͷͱ߹Θͤͯɺ໌ࣔతʹҾΛॻ͔ͳͯ͘͞ΕͨϒϩοΫΛར༻Ͱ͖ͨ w ͜ͷػೳΛഇࢭ͠Α͏ͱ͍͏ํʹͳͬͨ w ແϒϩοΫprocͱProc.new͔ΒܯࠂɺແϒϩοΫlambdaഇࢭ
͕ೖͬͨͷͰɺࠓࠨଆΛলུͨ͠ͷ ೖΕ͍ͨ w "DUJWF3FDPSEͳͲͷ%4-ͰศརProduct.where(price: ..1000) w &OEMFTT3BOHFTಋೖޙʹ͍͔͕ͭ͘ൃݟɾରॲ͞ΕͨͷͰɺͦΕΒͷ ख͕ͯऴΘͬͯམͪண͍͔ͯΒ w &OVNFSBUPS:JFMEFSUP@QSPD w IUUQTCVHTSVCZMBOHPSHJTTVFT
"%02x" % @1 } w طଘจ๏ͱিಥͷͳ͍حͷҊʢ@1 @2,…ʣʹظ w ύλʔϯϚονػೳʢDBTFJOߏจʣ w IUUQTCVHTSVCZMBOHPSHJTTVFT w ڧͪ͘·Ε͖ͯͨػೳ w εΫϦϓτݴޠͷதͰڧྗͰ3VCZͷڧΈͱݴΘΕ͖͕ͯͨɺؔܕݴޠ͕ϝδϟʔ ʹͳ͖ͬͯͨࠓͰͪΐͬͱݟྼΓ͢Δ