33件ヒット
[1-33件を表示]
(0.109秒)
検索結果
先頭3件
-
TracePoint
# path -> String (18120.0) -
イベントが発生したファイルのパスを返します。
...トが発生したファイルのパスを返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.path # => "/path/to/test.rb"
end
trace.enable
foo 1
//}... -
Net
:: POP3 # enable _ ssl(verify _ or _ params={} , certs=nil) -> () (6120.0) -
このインスタンスが SSL による通信を利用するように設定します。
...{ :verify_mode => verify_or_params, :ca_path => certs }
というハッシュが渡されます。
@param verify_or_params SSLの設定のハッシュ、もしくは SSL の設定の verify_mode
@param certs SSL の設定の ca_path
@see Net::POP3.enable_ssl, Net::POP3#disable_ssl, Net::POP3#use... -
TracePoint
# inspect -> String (13.0) -
self の状態を人間に読みやすい文字列にして返します。
...self の状態を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.inspect # "#<TracePoint:call `foo'@/path/to/test.rb:1>"
end
trace.enable
foo 1
//}...