55件ヒット
[1-55件を表示]
(0.123秒)
クラス
-
Net
:: FTP (11) -
Net
:: POP3 (11) -
Net
:: SMTP (11) - WIN32OLE (11)
-
WIN32OLE
_ TYPE (11)
キーワード
-
default
_ event _ sources (11) -
ole
_ func _ methods (11) -
set
_ debug _ output (11)
検索結果
先頭5件
-
Net
:: SMTP # quit -> Net :: SMTP :: Response (24224.0) -
QUIT コマンドを送ります。
...QUIT コマンドを送ります。
通常は Net::SMTP#finish で
QUIT が送られるため利用する必要はないはずです。... -
Net
:: FTP # quit -> nil (24202.0) -
FTP のセッションからログアウトします。
FTP のセッションからログアウトします。 -
Net
:: POP3 # set _ debug _ output(f) -> () (6107.0) -
デバッグ用の出力 f をセットします。
...を持っているオブジェクトでなければなりません。
使用例:
require 'net/pop'
pop = Net::POP3.new('pop.example.com', 110)
pop.set_debug_output $stderr
pop.start('YourAccount', 'YourPassword') {
p pop.n_bytes
}
実行結果:
POP session started: pop.example.c......om:110 (POP)
-> "+OK popd <1162042773.26346.155555a1861c@pop.example.com>\r\n"
<- "APOP YourAccount XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\r\n"
-> "+OK\r\n"
<- "STAT\r\n"
-> "+OK 37 339936\r\n"
339936
<- "QUIT\r\n"
-> "+OK\r\n"... -
WIN32OLE
# ole _ func _ methods -> [WIN32OLE _ METHOD] (6107.0) -
オブジェクトのファンクション情報をWIN32OLE_METHODの配列として返し ます。
...す。
ole_func_methodsメソッドは、OLEオートメーションサーバのメソッドのうちファ
ンクション(何らかの機能的な操作)に属するものをWIN32OLE_METHODの
配列として返します。
@return WIN32OLE_METHODの配列。
@raise WIN32OLERuntimeError オ......excel = WIN32OLE.new('Excel.Application')
excel.visible = true
excel.ole_func_methods.each do |fun|
if fun.name.upcase == 'QUIT'
excel._invoke(fun.dispid, [], [])
break
end
end
@see WIN32OLE#ole_methods, WIN32OLE#ole_get_methods,
WIN32OLE#ole_put_methods... -
WIN32OLE
_ TYPE # default _ event _ sources -> [WIN32OLE _ TYPE] (6107.0) -
型が持つソースインターフェイスを取得します。
...す。
default_event_sourcesメソッドは、selfがCoClass(コンポーネントクラス)
の場合、そのクラスがサポートするデフォルトのソースインターフェイス(イ
ベントの通知元となるインターフェイス)を返します。
@return デフォ......たない場合は空配列を返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
tobj.default_event_sources.map {|intf| intf.name} #=> ["DocEvents"]
WIN32OLE_EVENT.newでインターフェイス名を指定しない場合は、ここで
返さ......ベントのStatusTextChangeイベントのメッセージについては既
知としています。
# coding : cp932
require 'win32ole'
type = WIN32OLE_TYPE.new('Microsoft Internet Controls', 'InternetExplorer')
ctl = WIN32OLE.new(type.progid)
source = type.default_event_sources[0]
class...