るりまサーチ

最速Rubyリファレンスマニュアル検索!
134件ヒット [1-100件を表示] (0.016秒)
トップページ > クエリ:spec/call[x]

別のキーワード

  1. format spec
  2. format spec=
  3. installer spec
  4. uninstaller spec
  5. oldformat spec

検索結果

<< 1 2 > >>

メソッド呼び出し(super・ブロック付き・yield) (23000.0)

メソッド呼び出し(super・ブロック付き・yield) * super * block * yield * block_arg * numbered_parameters * call_method

メソッド呼び出し(super・ブロック付き・yield)
* super
* block
* yield
* block_arg
* numbered_parameters
* call_method

//emlist[例][ruby]{
foo.bar()
foo.bar
bar()
print "hello world\n"
print
Class.new
Class::new
//}

文法:

[式 `.'] 識別子 [`(' [[`*'] 式] ... [`&' 式] `)']
[式 `::'] 識別子 [`(' ...

Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (18.0)

Rubyで使われる記号の意味(正規表現の複雑な記号は除く) ex q num per and or  plus minus ast slash hat sq  period comma langl rangl eq tilde  dollar at under lbrarbra  lbra2rbra2 lbra3rbra3 dq colon ac  backslash semicolon

...Proc オブジェクトをブロックとして使う。d:spec/call#block を参照。

: xxx&.yyy

safe navigation operator(通称「ぼっち演算子」)。xxx が nil でないときにメソッドyyyを呼び出す。spec/call を参照。

===[a:or] |

: 3 | 5

論理和演算子ま...
...2**3

累乗。または類似の演算を行うメソッド。

: def xxx(*yy) ・・ *がついた引数

メソッド呼出の引数展開。spec/call と d:spec/def#method を参照。

: x, *y = foo()

多重代入。d:spec/operator#multiassign を参照。

: /xx*/

正規表現の、直...

Kernel.#lambda -> Proc (6.0)

与えられたブロックから手続きオブジェクト (Proc のインスタンス) を生成して返します。Proc.new に近い働きをします。

...が違うとエラーになる][ruby]{
b = lambda{|a,b,c|
p a,b,c
}
b.call(2, 4)
#=> wrong number of arguments (2 for 3) (ArgumentError)
//}

d:spec/call#block_arg も参照してください。

==== ジャンプ構文の挙動の違い

return と break は、lambda と Proc.new では挙動が...
...数が違うとエラーになる][ruby]{
b = lambda{|a,b,c|
p a,b,c
}
b.call(2, 4)
# => wrong number of arguments (given 2, expected 3)
//}

d:spec/call#block_arg も参照してください。

==== ジャンプ構文の挙動の違い

return と break は、lambda と Proc.new では挙動が...

Kernel.#lambda { ... } -> Proc (6.0)

与えられたブロックから手続きオブジェクト (Proc のインスタンス) を生成して返します。Proc.new に近い働きをします。

...が違うとエラーになる][ruby]{
b = lambda{|a,b,c|
p a,b,c
}
b.call(2, 4)
#=> wrong number of arguments (2 for 3) (ArgumentError)
//}

d:spec/call#block_arg も参照してください。

==== ジャンプ構文の挙動の違い

return と break は、lambda と Proc.new では挙動が...
...数が違うとエラーになる][ruby]{
b = lambda{|a,b,c|
p a,b,c
}
b.call(2, 4)
# => wrong number of arguments (given 2, expected 3)
//}

d:spec/call#block_arg も参照してください。

==== ジャンプ構文の挙動の違い

return と break は、lambda と Proc.new では挙動が...

Kernel.#proc -> Proc (6.0)

与えられたブロックから手続きオブジェクト (Proc のインスタンス) を生成して返します。Proc.new に近い働きをします。

...が違うとエラーになる][ruby]{
b = lambda{|a,b,c|
p a,b,c
}
b.call(2, 4)
#=> wrong number of arguments (2 for 3) (ArgumentError)
//}

d:spec/call#block_arg も参照してください。

==== ジャンプ構文の挙動の違い

return と break は、lambda と Proc.new では挙動が...
...数が違うとエラーになる][ruby]{
b = lambda{|a,b,c|
p a,b,c
}
b.call(2, 4)
# => wrong number of arguments (given 2, expected 3)
//}

d:spec/call#block_arg も参照してください。

==== ジャンプ構文の挙動の違い

return と break は、lambda と Proc.new では挙動が...

絞り込み条件を変える

Kernel.#proc { ... } -> Proc (6.0)

与えられたブロックから手続きオブジェクト (Proc のインスタンス) を生成して返します。Proc.new に近い働きをします。

...が違うとエラーになる][ruby]{
b = lambda{|a,b,c|
p a,b,c
}
b.call(2, 4)
#=> wrong number of arguments (2 for 3) (ArgumentError)
//}

d:spec/call#block_arg も参照してください。

==== ジャンプ構文の挙動の違い

return と break は、lambda と Proc.new では挙動が...
...数が違うとエラーになる][ruby]{
b = lambda{|a,b,c|
p a,b,c
}
b.call(2, 4)
# => wrong number of arguments (given 2, expected 3)
//}

d:spec/call#block_arg も参照してください。

==== ジャンプ構文の挙動の違い

return と break は、lambda と Proc.new では挙動が...

MonitorMixin (6.0)

スレッドの同期機構としてのモニター機能を提供するモジュールです。

...クラスの initialize に引数を渡したい場合は super を、そうでない場合は super() を呼んで下さい。
詳しくは、d:spec/call#super を参照して下さい。
例えば、以下の MyObject のスーパークラスは Object であり、その initialize は引数を受...

Proc (6.0)

ブロックをコンテキスト(ローカル変数のスコープやスタックフ レーム)とともにオブジェクト化した手続きオブジェクトです。

...が違うとエラーになる][ruby]{
b = lambda{|a,b,c|
p a,b,c
}
b.call(2, 4)
#=> wrong number of arguments (2 for 3) (ArgumentError)
//}

d:spec/call#block_arg も参照してください。

==== ジャンプ構文の挙動の違い

return と break は、lambda と Proc.new では挙動が...
...数が違うとエラーになる][ruby]{
b = lambda{|a,b,c|
p a,b,c
}
b.call(2, 4)
# => wrong number of arguments (given 2, expected 3)
//}

d:spec/call#block_arg も参照してください。

==== ジャンプ構文の挙動の違い

return と break は、lambda と Proc.new では挙動が...

Symbol#to_proc -> Proc (6.0)

self に対応する Proc オブジェクトを返します。

.../emlist[暗黙に呼ばれる例][ruby]{
# メソッドに & とともにシンボルを渡すと
# to_proc が呼ばれて Proc 化され、
# それがブロックとして渡される。
(1..3).collect(&:to_s) # => ["1", "2", "3"]
(1..3).select(&:odd?) # => [1, 3]
//}

@see d:spec/call#block...

オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (6.0)

オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル * Ruby オフィシャルサイト https://www.ruby-lang.org/ja/ * 原著:まつもとゆきひろ * 最新版URL: https://www.ruby-lang.org/ja/documentation/

...* spec/safelevel

Ruby の文法:
* spec/lexical
* spec/program
* spec/variables
* spec/literal
* spec/operator
* spec/control
* spec/call
* spec/def

その他:
* spec/m17n
* spec/regexp
* spec/lambda_proc

==== 組み込みライブラリ
* _builtin

==== 標準添付ラ...
...ate
* spec/thread

Ruby の文法:
* spec/lexical
* spec/program
* spec/variables
* spec/literal
* spec/operator
* spec/control
* spec/call
* spec/def

その他:
* spec/m17n
* spec/regexp
* spec/lambda_proc

==== 組み込みライブラリ
* _builtin

==== 標準添付ラ...

絞り込み条件を変える

<< 1 2 > >>