以ä¸ãä»åã®ã¡ã¢ã§ãã 2015.02.28 ã¢ã³ãã¼ã¹ã¿ã³ãã£ã³ã°ã³ã³ãã¥ãã¼ã·ã§ã³ èªæ¸ä¼ 第1å · cuzic/amagasakirb Wiki -> ãå¤ã -> ã®å¾ã«æ¬å¼§ãæ¸ããã©ãã (æ¸ãæ¹ãå¤æ°æ´¾ã ã£ã) .call() ã® call ã®çç¥ã使ããã©ãã (çç¥ããªãæ¹ãå¤æ°æ´¾ã ã£ã) å¤éä»£å ¥ã®å³è¾ºã® [] ã§ããã£ã¦é åã«ãã¦ããã®ã¯ãã£ã¦ããªãã¦ããã®ä¾ã ã¨åã "#{obj}" 㯠#to_s ãå¼ã°ãã "abc" + obj 㯠#to_str ãå¼ã°ãã String(obj) ã #to_str ãå¼ã°ãã p.9 *æ¼ç®å ã®æ¼ç®åã¨ãã表ç¾ãå¼ã£ããã Symbol#to_proc 㨠Object#tap 㯠Rails (ActiveSupport ç±æ¥) class Point < Struct.new(:x, :y) ã®è©± ååã決ã¾ããªã
{{#tags}}- {{label}}
{{/tags}}