trace_var(varname, hook) -> nil[permalink][rdoc][edit] trace_var(varname) {|new_val| .... } -> nil trace_var(varname, hook) -> [String|Proc] ã°ãã¼ãã«å¤æ° varname ã¸ã®ä»£å ¥ã®ããã¯ãç»é²ãã¾ãã ããã§ã®ãã°ãã¼ãã«å¤æ°ãã¯ãç¹æ®å¤æ° (å¤æ°ã¨å®æ°/çµã¿è¾¼ã¿å¤æ° ãåç §)ãå«ãã `$' ã§å§ã¾ãå¤æ°ã®ãã¨ã§ãã ãã®å¼ã³åºã以éãvarname ã§æå®ããã°ãã¼ãã«å¤æ°ã«å¤ãä»£å ¥ããããã³ã« hook ããããã¯ãè©ä¾¡ããã¾ããhook ã Proc ãªãã¸ã§ã¯ãã®å ´åä»£å ¥ãããå¤ããããã¯å¼æ°ã«æ¸¡ããã¾ããæååã®å ´åã¯Rubyã³ã¼ãã¨ãã¦è©ä¾¡ããã¾ãã trace_var ãããã¯ããã®ã¯æ示çãªä»£å ¥ã ãã§ããããã¯ã¯è¤æ°ç»é²ã§ãã¾ãã
{{#tags}}- {{label}}
{{/tags}}