ãRubyã®caseããä¸ç¥ãããã¼è¦ã¯ãã(è¨èªå)ã®switchãããªã©ã¨æ©åç¹ãããã®å¾ããã®çã®ä¾¡å¤ãç¥ããã¨ãªãä¸çãçµããããã°ã©ããè¿å¹´è·¡ã絶ããªããå ãã¦ããä»æ´æ¡ä»¶åå²ï¼Rubyã¯OOPãªãã ããããªã¢ãã£ãºã ãããï¼ãã¨ããHashã«Procçªã£è¾¼ãã§callããã®ããªã¬æµããã¨ãããã¶ã人ãã¡ãã¾ãå¢å ã®ä¸éã辿ã£ã¦ããã ãããªä¸ã®ä¸ã«ãã£ã¦ãã¼ãã¯ä¸è¨ãã§ããã°ã¬ãã³ã¨ä¸è¨ç³ãä¸ããããçã¾ããè²ã¡ãRubyãªã¼ããããæ¯éã¨ããããªäººãã¡ã«ãRubyã®caseãã«ã¤ãã¦ä¸è¨ç³ãä¸ãã¦ããããã â åé¡ï¼ â åånameãã¬ãã«levelããã¤ã³ãpointã®åå±æ§ãæã£ãè¤æ°ã®Characterãªãã¸ã§ã¯ãcharlie, liz, benãããã class Character < Struct.new(:name, :level, :point) def
{{#tags}}- {{label}}
{{/tags}}