Pry is an alternative to IRB and sports many great features. Here I show how to integrate it into a Rails app, and how it can aid in debugging.
ruby-1.9.2-p180 > Hirb.enable => true ruby-1.9.2-p180 > Prefecture.limit(3) Prefecture Load (0.3ms) SELECT `prefectures`.* FROM `prefectures` LIMIT 3 +----+--------+ | id | name | +----+--------+ | 1 | åæµ·é | | 2 | é森ç | | 3 | 岩æç | +----+--------+ 3 rows in set ruby-1.9.2-p180 > Gender.limit(3) Gender Load (0.4ms) SELECT `genders`.* FROM `genders` LIMIT 3 +----+------+---------------+-------------
ããã°ãä¸è¨ã«ç§»è»¢ãã¾ããããã¶ã¤ã³å¤æ´ã«ãã移転å ã§ã¯è¨äºãä¸å±¤èªã¿ããããªã£ã¦ãã¾ãã®ã§ããããããã°ç§»åããé¡ãè´ãã¾ãã IRBãããã¯Rubyistã®éæ³ã®ã©ã³ã : melborne.github.com - IRB*1ãååãèãã°èª°ã§ãããã è¶ æåãªã©ã¤ãã©ãª IRBãç¥ããªããããããã¯ãããã®Rubyist :$ IRBãå ¨é¨ã®Rubyã«ä»ãã¦ãã ããªãã¨Rubyã®å¯¾è©±ã®çªå£ ã§ããªããã¨ãããã®ãªããirbã¨æã£ã¦ã¿ãã rubyã¨æã£ã¦ããã¡ã§ãã IRBãããã¯Rubyistã®éæ³ã®ã©ã³ã ãããã°ä½ããç¾ãã IRBãããã¯Rubyistã®éæ³ã®ã©ã³ã ããã£ã¦é¡ããå¶ããã I RuB youãI RuB you :TO IRBãè²æ°ããªãã®ã¯ãæå¬ è²ããããªãã.irbrcãã¦ãã ãã è£å®ã ã£ã¦ã¤ã³ãã³ãã ã£ã¦ ããããããªãããã³ããã ã£ã¦ ããªã
ãã®ã¨ã³ããªã¯ Ruby Advent Calendar jp: 2009 : ATNDã®7æ¥ç®ã®ã¨ã³ããªã§ãã ä¸è¨ã®ãã¼ã¸ã«æ¸ãã¦ããã¨ããã12æä¸ã«1æ¥ãã25æ¥ã¾ã§ä¸ã¤ã㤠Tips ãæ¸ãã¦ãããï¼ã¨ããä¼ç»ã§ããã®7æ¥ç®ãã¼ãã®æ å½ã¨ãªã£ã¦ãã¾ãã åã®ã¨ã³ããªã¯ãã£ã¡ï¼Ruby1.9ã«å¯¾ãã¦ã§ããã㨠- takkan_mã®No planãªæ¥å¸¸ 次ã®äººã¯ãã£ã¡ï¼ Road To RDoc - ã¯ã¦ãªããã£ï¼ ãããããæ¬é¡ ã¿ãªãã irb ã¯ä½¿ã£ã¦ããã¨æããã¾ããã© irb ã«éãããã¤ã³ã¿ã©ã¯ãã£ããªã¤ã³ã¿ã¼ãã§ã¤ã¹ãããã¨ãã¡ãã£ã¨ãã®åä½ã確èªããããã¨ããæã«éå®ãã¾ãããã ãããªãä½è«ã§ãã ä»ä»äºã§ Flex ã使ã£ã¦ããã®ã§ãã irb ã«æ £ããã£ãä½ã§ã¯ã¡ãã£ã¨ããåä½ç¢ºèªãªã©ãé常ã«åå«ã§åå«ã§ãirbã®ããããã¿ãçæãã¦ããã¨ããã§ãã ã¨ããã
ããããã誰ããããæ·±å¤ã®Webãµã¼ãã£ã³ã¯ã究極ã®ã¨ããæéã®ç¡é§ã§ã¯ãªãã®ãããããªãã ããã¯ãWebã§å¤¢ãã¿ã¦ããã®ã«ã»ããªããªãã®ã ã(T.B=ãªã¼ãWebã®åµæããã) å æ¥ãã¾ãã㨠Ruby! Vol.1ããèªãã§ãã¦ãxmpfilterã¨ãã試è¡é¯èª¤ãã¼ã«ããããã¨ãç¥ãã¾ããã xmpfilterã¯ãRubyã½ã¼ã¹ã³ã¼ãä¸ã®ä»»æã®è¡æ«ã«ã# =>ãã¨ããè¨ç®ãã¼ã¯(ã³ã¡ã³ã)ãå ¥ãã¦ãããã¨ã§ãããã«ãã®è¡ã®å¼ã®å¤ãåãè¾¼ãã§è¡¨ç¤ºãã¦ããããã£ã«ã¿ã¼ã³ãã³ãã§ãã(irbã§ã¯ä¸è¡ãã¤è¡¨ç¤ºãããçµæããç´æ¥ã³ã¼ãã®è¡æ«ã«è¡¨ç¤ºã§ããã¤ã¡ã¼ã¸) ã¤ã³ã¹ãã¼ã«ãgemã§ä¸çºãããã«ä½¿ãããããæ¨æºã§Vimã¨Emacsãã使ãããã®ã¹ã¯ãªããã¾ã§ç¨æããã¦ããã¹ã°ã¬ã¢ãã è¶ çµ¶ä¾¿å©ã ã¨æãã®ã§ããããã®ããã«ãã¾ãæ å ±ãã¿ãããªãã®ã§ãããã§ã¯Vimãã便å©ã«ä½¿ãããã®æ¹æ³ã«ã¤ã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}