るりまサーチ

最速Rubyリファレンスマニュアル検索!
55件ヒット [1-55件を表示] (0.057秒)

別のキーワード

  1. tracer event_symbol
  2. etc sc_trace_event_filter
  3. ripper parser_event_table
  4. ripper scanner_event_table
  5. etc sc_trace_event_name_max

ライブラリ

キーワード

検索結果

WIN32OLE_EVENT (6037.0)

OLEオートメーションサーバからのイベント通知を制御するクラスです。

...OLE_EVENTを利用
すると、ブロックの形式でイベントを受け取るメソッドをサーバへ登録できま
す。

=== サンプルコード

ie = WIN32OLE.new('InternetExplorer.Application.1')
event
= WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents2')
b = false
event
.on_event('D...
...nt.getElementsByTagName('a').each do |e|
puts "#{e.innerHTML}=#{e.href}" #=> ダウンロード=http://www.ruby-lang.org/ja/downloads/ など
end
disp.quit
b = true
end
ie.Navigate2 'http://www.ruby-lang.org/ja/'
loop do
break if b
WIN32OLE_EVENT.message_loop
end...

REXML::Parsers::PullEvent (6001.0)

REXML::Parsers::PullParser で使われるパース結果を表すイベントクラス。

REXML::Parsers::PullParser で使われるパース結果を表すイベントクラス。

REXML::Parsers::PullParser#pull および
REXML::Parsers::PullParser#peek がこのクラスのオブジェクトを返します。

Ripper::Filter (7.0)

イベントドリブンスタイルで Ruby プログラムを加工するためのクラスです。

...e 'ripper'
require 'cgi'

class
Ruby2HTML < Ripper::Filter
def on_default(event, tok, f)
f << CGI.escapeHTML(tok)
end

def on_comment(tok, f)
f << %Q[<span class="comment">#{CGI.escapeHTML(tok)}</span>]
end

def on_tstring_beg(tok, f)
f << %Q[<span class="string">#{CGI.escapeHT...
..., f)
f << %Q[#{CGI.escapeHTML(tok)}</span>]
end
end

Ruby2HTML.new(ARGF).parse('')
//}

Ruby プログラムを解析して、Ripper::SCANNER_EVENTS にあるスキャナ
イベントを実行します。イベントはプログラムに書いた順番で実行されます。

上記の例で...

TracePoint (7.0)

Kernel.#set_trace_func と同様の機能をオブジェクト指向的な API で 提供するクラスです。

...供するクラスです。

//emlist[例:例外に関する情報を収集する][ruby]{
trace = TracePoint.new(:raise) do |tp|
p [tp.lineno, tp.event, tp.raised_exception]
end
# => #<TracePoint:0x007f786a452448>

trace.enable
# => false

0 / 0
# => [5, :raise, #<ZeroDivisionError: divided by 0>]...

WIN32OLE_VARIABLE (7.0)

OLEオートメーションの変数情報をRubyで参照するためのクラスです。

...ートメーションサーバは、定数(WIN32OLE.const_load)、メソッ
ド/プロパティ(WIN32OLE_METHOD)、イベント(WIN32OLE_EVENT
のほかに変数をクライアントへ提供できます。WIN32OLE_VARIABLEクラスは、サー
バが提供する変数の情報をオブ...

絞り込み条件を変える