èªåç¨ã®ã¡ã¢ãRubyMotion 3.3ã
åæ
- RubyMotion ã§ã¯ Java ã®ã¯ã©ã¹ã Ruby ã§ç¶æ¿ã§ãã
- ãã ããã®éã¯ã³ã³ã¹ãã©ã¯ã¿ã ã㯠Java ã§æ¸ããªãã¨ãã¡
- Manuals | RubyMotion ã® 2.5 åç §ã®ãã¨
åç´ã«ã³ã³ã¹ãã©ã¯ã¿ãæ¸ãç¨é以å¤ã«ããç¾è¡ã®RubyMotionã§ãã¾ãåããªãç®æãJavaã§æ¸ãã¦ä½ã¨ãåãããç¨éã¨ãã¦ã使ãã(ããããã¦ãã¦)ã
è½ã¨ãç©´ã®ã¬ã·ã
- ã³ã³ã¹ãã©ã¯ã¿ã§ã¤ã³ã¹ã¿ã³ã¹å¤æ°ã«å¤ãæ ¼ç´ãã
- å½ç¶ãJava ã®æ¹ã§å¤æ°å®£è¨ãã
ãã®æãRuby å´ã§ã attr_accessor ãªã©ã使ã£ã¦ã¤ã³ã¹ã¿ã³ã¹å¤æ°ã«ã¢ã¯ã»ã¹ããã¡ã½ãããçããã¨ãããããªãã Java ã®æ¹ã§å ¥ããå¤ã Ruby å´ã§è¦ããã¨ãã§ããã nil ã«ãªãã
解決ç
attr_accessor ãæ¶ãã° OK