[Á°][¼¡][ÈÖ¹æ½ç°ìÍ÷][¥¹¥ì¥Ã¥É°ìÍ÷]

learn-ruby-in-kansai:137

From: tomoya <tomoya@c...>
Date: Sun, 26 Dec 2004 20:56:38 +0900
Subject: [learn-ruby-in-kansai:137] Re: WIN32OLE ¤Ë¤Ä¤¤¤Æ¤Î¼ÁÌ䣲

cuzic¤Ç¤¹¡£

> ¼ò°æ¤Ç¤¹¡£
> 
> cuzic¤µ¤ó¡¢¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£¡¡¤ª¤«¤²¤Ç­¡¤Ï²ò·è¤·¤Þ¤·¤¿¡£
> cell.item(i, j).Borders(position('l')).Weight = line_w('s')¤¬
> cell[i, j].Borders(position('l')).Weight = line_w('s')¤Èµ­½Ò¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê 
> ¤Þ¤·¤¿¡£
¤¤¤¨¤¤¤¨¡£
¼ò°æ¤µ¤ó¤Î¼ÁÌä¤Ç¿·¤·¤¤¥Æ¥¯¥Ë¥Ã¥¯¤ò»×¤¤¤Ä¤¯¤³¤È¤¬¤Ç¤­¤Þ¤·¤¿¡£
¤³¤Á¤é¤³¤½¡¢¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£

> ¤·¤«¤·¡¢moduleÄêµÁ¤ÎÃæ¤Îdef v.cell= cell¤Èdef v.method_missing(name,*args)
> ¤Î°ÕÌ£¤¬Íý²ò¤Ç¤­¤Þ¤»¤ó¡£ÊÙ¶¯²ñ¤Ç¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£
Æðۥ᥽¥Ã¥É¤ÎÄêµÁ¤È method_missing ¤Ï¡¢¤¿¤·¤«¤ËÍý²ò¤·¤Ë¤¯¤¤¤Ç¤¹¤Í¡£
¤³¤ì¤Ï¡¢Æ°Åª¤Ê¸À¸ì¤Ç¤¢¤ë Ruby ¤ÎÆÃħ¤ò³è¤«¤·¤¿Éôʬ¤Ç¤¹¡£

Æðۥ᥽¥Ã¥É¤È method_missing ¤Ï¤è¤¯¤¢¤ëÀÅŪ¸À¸ì¤Î¥ª¥Ö¥¸¥§¥¯¥È»Ø¸þ¤Î
ÊýË¡ÏÀ¤È¤«¤Ê¤ê°Û¤Ê¤ë¤Î¤Ç¡¢»¿Èݤ¬Ê¬¤«¤ì¤ë¤È¤³¤í¤À¤È»×¤¤¤Þ¤¹¡£
¤·¤«¤·¡¢¤³¤ó¤Ê¤Ë¥Ñ¥ï¥Õ¥ë¤Ç¤¹¡£

¤Þ¤¡¡¢Æñ¤·¤¤ÏäÏÊÙ¶¯²ñ¤Ç¡£
> 
> ¤Ê¤«¤Ê¤«»²¹Í¤Ë¤Ç¤­¤ëÎ㤬VBA¤·¤«¤Ê¤¯Ruby¤é¤·¤¯Win32OLE¤ÇEXCEL¤ò»È¤¦¤³¤È¤Ï¡¢Æñ 
> ¤·¤¤¡£
> VBA¤ÎÎãÂê¤Ï¡¢¤À¤é¤À¤éµ¡Ç½¤ò¾Ò²ðµ­½Ò¤¹¤ëÎ㤬¿¤¤¤Î¤ÈRuby¤ÎOOP¤ËÂФ¹¤ëÃμ±ÉÔ­ 
> ¤â¸¶°ø¤Î£±¤Ä¤Ç¤¹¡£

Ruby ¤ÎǽÎϤò°ú¤­½Ð¤¹¥×¥í¥°¥é¥ß¥ó¥°¤ò¤¹¤ë¤Ë¤Ï½¾Íè¤Î OOP ¤ÎÍý²ò¤Ç¤Ï
ÉÔ½½Ê¬¤ÊÉôʬ¤Ï¿¤¤¤È»×¤¤¤Þ¤¹¤¬¡¢¤½¤Î¤¢¤¿¤ê¤ò²òÀ⤷¤¿½ñÀҤʤɤ⾯¤Ê¤¤¤Ç¤¹
¤Í¡£

»ä¤ÎÏ¢ºÜ¤Ç¤Ï Win32OLE ¤Î»È¤¤Êý¤ò¾Ò²ð¤¹¤ë¤³¤È¤¬¼ç¤ÊÌÜŪ¤Ç¤¹¤¬¡¢¤½¤ÎÃæ¤Ç
ɬÍפ˹ç¤ï¤»¤Æ¡¢º£²ó¤Ç¤Îµ­»ö¤Î¤è¤¦¤Ë Ruby ¤Ç¤Î¤¹¤´¤¤¤ä¤êÊý¤ò
ÀâÌÀ¤·¤Æ¤¤¤¯Í½Äê¤Ç¤¹¡£
¤´´üÂÔ¤¯¤À¤µ¤¤¡£

> £±.module¤Ë¤è¤ë³ÈÄ¥¡£¡¡module¤Ï¡¢Class¤Ëinclude¤·¤Æ»È¤¦¤â¤Î¤È»×¤Ã¤Æ¤¤¤Þ¤·¤¿¡£
> £².. £ù£é£å£ì£ä¤Î»È¤¤Êý¡£¡¡ ¡¡£ù£é£å£ì£ä¤Ë¤Ä¤¤¤Æ¤Ï¡¢ËܤòÆɤó¤Ç¤âº££±¤Ä»È¤¤¾ì 
> ½ê¤¬ÉÔÌÀ¤Ç¤·¤¿¡£

²¿¤òÃΤé¤Ê¤«¤Ã¤¿¤«¤Ê¤É¡¢¶µ¤¨¤Æ¤¯¤À¤µ¤¤¤Þ¤·¤Æ¡¢¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£

Object#extend ¤Ë¤è¤ë³ÈÄ¥¤ä¡¢yield ¤Î»È¤¤Êý¤ò¤³¤Îµ­»ö¤òÆɤó¤Ç
Íý²ò¤·¤¿¤È¤¤¤¦Êý¤Ï°Õ³°¤Ë¿¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¤Í¡£

¤Û¤«¤Î¤ß¤Ê¤µ¤ó¤â¡¢º£²ó¤Îµ­»ö¤Ç¡¢²¿¤¬ÃΤé¤Ê¤¯¤Æ¡¢²¿¤ò¤¹¤´¤¤¤È»×¤Ã¤¿¤«¤ò
¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£
º£¸å µ­»ö¤ò½ñ¤¤¤Æ¤¤¤¯¤È¤­¤ä¡¢ÊÙ¶¯²ñ¤Ç¤ÎÆâÍƤλ²¹Í¤Ë¤·¤Æ¤¤¤­¤Þ¤¹¡£
¤ß¤ó¤Ê¤Ç½¼¼Â¤·¤¿ÆâÍƤÎÊÙ¶¯²ñ¤òºî¤Ã¤Æ¤¤¤­¤Þ¤·¤ç¤¦¡£

¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£

-- 
KAWANISHI Tomoya <tomoya@c...>


--
ML: learn-ruby-in-kansai@r...
»È¤¤Êý: http://QuickML.com/

[Á°][¼¡][ÈÖ¹æ½ç°ìÍ÷][¥¹¥ì¥Ã¥É°ìÍ÷]

       132 2004-12-25 13:38 [sakai-n@m...        ] Re: WIN32OLE ¤Ë¤Ä¤¤¤Æ¤Î¼ÁÌ䣲           
->     137 2004-12-26 12:56 ¨±[tomoya@c...         ]