Pryã¨ã¯ Rubyã«ã¯ãæ¨æºã§ä»å±ããã¦ããirb(Interactive Ruby)ã¨ãããã¼ã«ãããã¾ãã consoleã§ãirbã¨å ¥åããã¨irbãå®è¡ããã¾ãã ããã§ã対話çã«Rubyã®å¼ãå ¥åã»å®è¡ãããã¨ãã§ãã¾ãã $ irb irb(main):001:0> 1 + 2 => 3 ããã¦ãPryã¯irbã®ä»£æ¿ã¨ãªããã¯ãã«ãªå¯¾è©±ãã¼ã«ã§ãã ãªã«ããã¯ãã«ãã¨ããã¨æ¬¡ã®ãããªãã¨ãã§ãã¾ãã ããã¥ã¡ã³ããè¦ãã ã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ã ãããã°ãã§ããï¼binding.pryãã½ã¼ã¹äºè¨è¼ããã¨ãã¬ã¤ã¯ãã¤ã³ãã«ãªãï¼ $ pry [1] pry(main)> ls # ç¾å¨ã®ã¹ã³ã¼ãã®å¤æ°ã¨ã¡ã½ããã表示 self.methods: inspect to_s locals: _ __ _dir_ _ex_ _file_ _in_ _out_ _pry_ åä½ç¢ºèª
{{#tags}}- {{label}}
{{/tags}}