2024-02-01ãã1ã¶æéã®è¨äºä¸è¦§
ååã¾ã§ã®ãããã RBSããã¹ãã«ãªãã¨ãããããããããªããæ¥è¨1 - ã¹ãã¯ãã©ã RBSããã¹ãã«ãªãã¨ãããããããããªããæ¥è¨2 - ã¹ãã¯ãã©ã ã¡ã½ããå ååã¾ã§ã§ã1ã¤ã®åã«ã¤ãã¦çæã§ããéçãã¤ããã ä»åã®ç®æ¨ã¯(Integer) -> Integerâ¦
åå RBSããã¹ãã«ãªãã¨ãããããããããªããæ¥è¨1 - ã¹ãã¯ãã©ã ååã§åããã©ã³ãã ãªå¤ãä½ã£ã¦ãã¹ãã«ä½¿ãã¨è¨ãã¢ã¤ãã¢ã«ã¤ãã¦èããã ã§ã¯åããã©ã³ãã ãªå¤ãä½ãã¨ãããã¼ãã«ã¤ãã¦èãã¦ãããã åããã¤ã³ã¹ã¿ã³ã¹ãä½ãä½æ¦ ä¾ãâ¦
class Foo def bar: (Integer) -> String end ã¿ãããªRBSããã£ãã¨ãã¦ããã®RBSã使ã£ã¦åæã«ãã¹ããã¦ããããã¼ã«ãããã¨ãããããããããªãï¼ ã¨ããã¢ã¤ãã¢ã§ãããã¯ããä½ã£ã¦ã¿ã¦ããã ããã¸ã§ã¯ãåã¯é©å½ã«RaaP(RBS as a Property)ã¨ãâ¦