1110件ヒット
[1-100件を表示]
(0.040秒)
種類
ライブラリ
- ビルトイン (622)
- fiddle (108)
- logger (24)
- monitor (12)
- openssl (12)
-
rubygems
/ requirement (12) - set (18)
-
webrick
/ httpproxy (12) -
webrick
/ httpserver (12) -
webrick
/ httpservlet / prochandler (12)
クラス
- BasicObject (24)
-
Fiddle
:: Closure (12) -
Fiddle
:: Closure :: BlockCaller (12) -
Fiddle
:: Function (36) -
Fiddle
:: Handle (24) -
Gem
:: Requirement (12) - Hash (12)
- LocalJumpError (24)
- Logger (24)
- Method (79)
- Module (12)
- Object (12)
-
OpenSSL
:: SSL :: SSLContext (12) - Proc (31)
- Set (24)
- SystemCallError (48)
- Thread (60)
-
Thread
:: Backtrace :: Location (48) - TracePoint (127)
- UnboundMethod (18)
-
WEBrick
:: HTTPProxyServer (12) -
WEBrick
:: HTTPServer (12) -
WEBrick
:: HTTPServlet :: ProcHandler (12)
モジュール
- Kernel (73)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - === (20)
- BlockCaller (12)
- Closure (12)
- Location (12)
- Method (12)
- MonitorMixin (12)
-
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - OPS (12)
- Proc (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- STDCALL (12)
- UnboundMethod (12)
- [] (12)
- abort (12)
-
absolute
_ path (12) -
add
_ trace _ func (12) -
base
_ label (12) - bind (6)
-
bind
_ call (12) - binding (12)
-
callee
_ id (12) - clone (12)
-
default
_ proc (12) -
defined
_ class (12) - divide (24)
- event (12)
-
exit
_ value (12) - fail (12)
- formatter (12)
- formatter= (12)
- inspect (24)
-
instance
_ eval (24) -
instance
_ method (12) - lambda (18)
- lambda? (12)
- lineno (12)
-
method
_ id (12) -
new
_ call (12) -
new
_ fcall (12) - parameters (7)
- path (12)
- proc (19)
- raise (12)
- rdoc (12)
-
rdoc
/ parser / c (12) - reason (12)
-
report
_ on _ exception (18) -
report
_ on _ exception= (18) -
rexml
/ parsers / sax2parser (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
session
_ new _ cb= (12) -
set
_ trace _ func (12) -
singleton
_ method (12) -
super
_ method (11) -
to
_ proc (12) -
to
_ s (12) - trace (12)
- tsort (12)
- xmlrpc (3)
- クラス/メソッドの定義 (12)
- セキュリティモデル (12)
- メソッド呼び出し(super・ブロック付き・yield) (12)
- 制御構造 (12)
- 手続きオブジェクトの挙動の詳細 (12)
- 正規表現 (12)
検索結果
先頭5件
-
SystemCallError
. new(errno) -> SystemCallError (21222.0) -
整数 errno に対応する Errno::EXXX オブジェクトを生成して返します。
...は SystemCallError の直接のインスタンスではなく、サブクラスのインスタンスです。
それらのサブクラスは Errno モジュール内に定義されています。
対応するサブクラスが存在しないコードを与えた場合には、 SystemCallError の......ときに発生します。
例:
p SystemCallError.new("message", 2)
# => #<Errno::ENOENT: No such file or directory - message>
p SystemCallError.new(2)
# => #<Errno::ENOENT: No such file or directory>
p SystemCallError.new(256)
# => #<SystemCallError: Unknown error 256>... -
SystemCallError
. new(error _ message , errno) -> SystemCallError (21222.0) -
整数 errno に対応する Errno::EXXX オブジェクトを生成して返します。
...は SystemCallError の直接のインスタンスではなく、サブクラスのインスタンスです。
それらのサブクラスは Errno モジュール内に定義されています。
対応するサブクラスが存在しないコードを与えた場合には、 SystemCallError の......ときに発生します。
例:
p SystemCallError.new("message", 2)
# => #<Errno::ENOENT: No such file or directory - message>
p SystemCallError.new(2)
# => #<Errno::ENOENT: No such file or directory>
p SystemCallError.new(256)
# => #<SystemCallError: Unknown error 256>... -
SystemCallError
. new(error _ message) -> SystemCallError (21212.0) -
SystemCallError オブジェクトを生成して返します。
...SystemCallError オブジェクトを生成して返します。
@param error_message エラーメッセージを表す文字列
例:
p SystemCallError.new("message")
# => #<SystemCallError: unknown error - message>... -
Fiddle
:: Closure :: BlockCaller . new(ret , args , abi=Fiddle :: Function :: DEFAULT) { . . . } -> Fiddle :: Closure :: BlockCaller (21207.0) -
Ruby のブロックを呼び出す Fiddle::Closure オブジェクトを返します。
...ddle::Closure オブジェクトを返します。
args、ret で関数の引数と返り値の型を指定します。
指定は Fiddle::Function.new と同様なので、そちら
を参照してください。
@param ret 返り値の型
@param args 引数の型を表す配列
@param abi 呼出... -
Proc
. new -> Proc (18138.0) -
ブロックをコンテキストとともにオブジェクト化して返します。
...クを指定しない場合、Ruby 2.7 では
$VERBOSE = true のときには警告メッセージ
「warning: Capturing the given block using Proc.new is deprecated; use `&block` instead」
が出力され、Ruby 3.0 では
ArgumentError (tried to create Proc object without a block)
が発生しま......ックがないのにブロックを省略した呼び出しを行ったときに発生します。
//emlist[例][ruby]{
def foo
pr = Proc.new
pr.call(1)
end
foo {|arg| p arg }
# => 1
//}
これは以下と同じです。
//emlist[例][ruby]{
def foo
yield(1)
end
foo {|arg| p arg }
# => 1
/......umentError が発生します。
//emlist[例][ruby]{
def foo
Proc.new
end
foo
# => -:2:in `new': tried to create Proc object without a block (ArgumentError)
# from -:2:in `foo'
# from -:4:in `<main>'
//}
Proc.new は、Proc#initialize が定義されていれば
オブジェクト... -
Proc
. new { . . . } -> Proc (18138.0) -
ブロックをコンテキストとともにオブジェクト化して返します。
...クを指定しない場合、Ruby 2.7 では
$VERBOSE = true のときには警告メッセージ
「warning: Capturing the given block using Proc.new is deprecated; use `&block` instead」
が出力され、Ruby 3.0 では
ArgumentError (tried to create Proc object without a block)
が発生しま......ックがないのにブロックを省略した呼び出しを行ったときに発生します。
//emlist[例][ruby]{
def foo
pr = Proc.new
pr.call(1)
end
foo {|arg| p arg }
# => 1
//}
これは以下と同じです。
//emlist[例][ruby]{
def foo
yield(1)
end
foo {|arg| p arg }
# => 1
/......umentError が発生します。
//emlist[例][ruby]{
def foo
Proc.new
end
foo
# => -:2:in `new': tried to create Proc object without a block (ArgumentError)
# from -:2:in `foo'
# from -:4:in `<main>'
//}
Proc.new は、Proc#initialize が定義されていれば
オブジェクト... -
TracePoint
. new(*events) {|obj| . . . } -> TracePoint (18137.0) -
新しい TracePoint オブジェクトを作成して返します。トレースを有効 にするには TracePoint#enable を実行してください。
...場合][ruby]{
trace = TracePoint.new(:call) do |tp|
p [tp.lineno, tp.defined_class, tp.method_id, tp.event]
end
# => #<TracePoint:0x007f17372cdb20>
trace.enable
# => false
puts "Hello, TracePoint!"
# ...
# [69, IRB::Notifier::AbstractNotifier, :printf, :call]
# ...
//}
トレースを無効......定義、特異クラス定義、モジュール定義の終了。
: :call
Ruby で記述されたメソッドの呼び出し。
: :return
Ruby で記述されたメソッド呼び出しからのリターン。
: :c_call
C で記述されたメソッドの呼び出し。
: :c_return......C で記述されたメソッド呼び出しからのリターン。
: :raise
例外の発生。
: :b_call
ブロックの開始。
: :b_return
ブロックの終了。
: :thread_begin
スレッドの開始。
: :thread_end
スレッドの終了。
指定イベントに関連......C で記述されたメソッド呼び出しからのリターン。
: :raise
例外の発生。
: :b_call
ブロックの開始。
: :b_return
ブロックの終了。
: :thread_begin
スレッドの開始。
: :thread_end
スレッドの終了。
: :fiber_switch
ファイ... -
WEBrick
:: HTTPProxyServer . new(config , default = WEBrick :: Config :: HTTP) -> WEBrick :: HTTPProxyServer (18137.0) -
プロクシオブジェクトを生成して返します。
...定を保存したハッシュを指定します。
設定として有効なハッシュのキーとその値は WEBrick::HTTPServer.new と同じです。
それに加えて以下のキーが有効です。
: :ProxyAuthProc
プロクシ認証を行う Proc オブジ......を指定します。この proc は
WEBrick::HTTPResponse オブジェクトと WEBrick::HTTPRequest オブジェクトを引数として
proc.call(req, res) のように呼ばれます。
認証に失敗した場合 proc は適切な例外を発生させなければいけません。nil を......'Basic realm="WEBrick Proxy"'
raise WEBrick::HTTPStatus::ProxyAuthenticationRequired
else
# 略
end
}
s = WEBrick::HTTPProxyServer.new(ProxyAuthProc: auth_proc, Port: 8080)
//}
: :ProxyContentHandler
接続先の HTTP サーバからの内容を処理する Proc オブジェク... -
Proc
. new { . . . } -> Proc (18131.0) -
ブロックをコンテキストとともにオブジェクト化して返します。
...を行ったときに発生します。
//emlist[][ruby]{
pr = Proc.new {|arg| p arg }
pr.call(1) # => 1
//}
//emlist[][ruby]{
Proc.new # => -e:1:in `new': tried to create Proc object without a block (ArgumentError)
//}
Proc.new は、Proc#initialize が定義されていれば
オブジェクト... -
Fiddle
:: Closure . new(ret , args , abi=Fiddle :: Function :: DEFAULT) -> Fiddle :: Closure (18123.0) -
そのクラスの call メソッドを呼びだすような Fiddle::Closure オブジェクトを返します。
...そのクラスの call メソッドを呼びだすような
Fiddle::Closure オブジェクトを返します。
args、ret で関数の引数と返り値の型を指定します。
指定は Fiddle::Function.new と同様なので、そちら
を参照してください。
@param ret 返り値...