206件ヒット
[1-100件を表示]
(0.100秒)
クラス
-
Psych
:: Handler (11) -
Psych
:: Nodes :: Scalar (22) - Regexp (11)
-
RubyVM
:: InstructionSequence (11) - String (20)
- Struct (2)
モジュール
- Kernel (19)
キーワード
- +@ (9)
- -@ (9)
- Rubyの起動 (11)
- Ruby用語集 (11)
- ` (11)
-
compile
_ option (11) - dedup (2)
- lambda (4)
-
literal
_ append (11) -
literal
_ concat (11) -
literal
_ concat _ dstr (11) -
literal
_ concat _ list (11) -
literal
_ concat _ string (11) - new (13)
- proc (4)
- scalar (11)
- ~ (11)
- メソッド呼び出し(super・ブロック付き・yield) (11)
- リテラル (11)
- 正規表現 (11)
検索結果
先頭5件
-
static NODE * literal
_ concat _ list(NODE *head , NODE *tail) (38300.0) -
-
static NODE * literal
_ append(NODE *head , NODE *tail) (32200.0) -
-
static NODE * literal
_ concat(NODE *head , NODE *tail) (32200.0) -
-
static NODE * literal
_ concat _ dstr(NODE *head , NODE *tail) (32200.0) -
-
static NODE * literal
_ concat _ string(NODE *head , NODE *tail , VALUE str) (32200.0) -
-
Psych
:: Nodes :: Scalar :: LITERAL -> Integer (24217.0) -
literal style を表します。
...literal style を表します。
@see Psych::Nodes::Scalar.new,
Psych::Nodes::Scalar#style,
Psych::Handler#scalar... -
Psych
:: Handler # scalar(value , anchor , tag , plain , quoted , style) -> () (6206.0) -
スカラー値を見付けたときに呼び出されます。
...を見付けたときに呼び出されます。
value にはスカラー値の文字列が渡されます。
anchor にはスカラー値に関連付けられた anchor の名前が文字列で渡されます。
anchor がない場合には nil が渡されます。
tag にはスカラー値に......nil が渡されます。
plain は plain style であるかどうか、quoted は quoted style であるかどうか
が渡されます。style には node の style が整数値で渡されます。
style は次の値のいずれかです。
* Psych::Nodes::Scalar::PLAIN
* Psych::Nodes::Scala......r::SINGLE_QUOTED
* Psych::Nodes::Scalar::DOUBLE_QUOTED
* Psych::Nodes::Scalar::LITERAL
* Psych::Nodes::Scalar::FOLDED
必要に応じてこのメソッドを override してください。
@param value スカラー値
@param anchor 関連付けられた anchor の名前
@param tag タグ名... -
RubyVM
:: InstructionSequence . compile _ option -> Hash (6112.0) -
命令シーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返 します。
...emlist[例][ruby]{
require "pp"
pp RubyVM::InstructionSequence.compile_option
# => {:inline_const_cache=>true,
# :peephole_optimization=>true,
# :tailcall_optimization=>false,
# :specialized_instruction=>true,
# :operands_unification=>true,
# :instructions_unification=>false,
# :stack_caching=>fals......e,
# :trace_instruction=>true,
# :frozen_string_literal=>false,
# :debug_frozen_string_literal=>false,
# :coverage_enabled=>true,
# :debug_level=>0}
//}
@see RubyVM::InstructionSequence.compile_option=... -
Kernel
. # lambda { . . . } -> Proc (6106.0) -
与えられたブロックから手続きオブジェクト (Proc のインスタンス) を生成して返します。Proc.new に近い働きをします。
...また、lambda に & 引数を渡すのは推奨されません。& 引数ではなくてブロック記法で記述する必要があります。
& 引数を渡した lambda は Warning[:deprecated] = true のときに警告メッセージ
「warning: lambda without a literal block is deprecat......the proc without lambda instead」
を出力します。
@raise ArgumentError ブロックを省略した呼び出しを行ったときに発生します。
//emlist[例][ruby]{
def foo &block
lambda(&block)
end
it = foo{p 12}
it.call #=> 12
//}
@see Proc,Proc.new
===[a:should_use_next] 手......では yield、それ以外では Proc#call)
へジャンプし値を返すには next を使います。break や return ではありません。
//emlist[例][ruby]{
def foo
f = Proc.new{
next 1
2 # この行に到達することはない
}
end
p foo().call #=> 1......e the proc without lambda instead」
を出力します。
@raise ArgumentError ブロックを省略した呼び出しを行ったときに発生します。
//emlist[例][ruby]{
def foo &block
proc(&block)
end
it = foo{p 12}
it.call #=> 12
//}
@see Proc,Proc.new
===[a:should_use_next] 手... -
メソッド呼び出し(super・ブロック付き・yield) (6006.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
//}
文法:
[式 `.'] 識別子 [`(' [[`*']......シーバが指定されない時は self のメソッドを呼び出しま
す。
`.' と `::' とはほぼ同じ意味です。但し、定数を表す場合は、
`::' を使わなければいけません(例: Math::PI)。逆に、
//emlist[][ruby]{
Klass::Foo
//}
とした場合、常に定......ッドを持つオブジェクトのメソッド定義式内でなければ呼び出せ
ません。d:spec/def#limit を参照して下さい。
ハッシュ式の解説(d:spec/literal#hash)にも書かれている通り、
メソッド呼出の末尾にHashを渡す場合は {, } を省略する...