245件ヒット
[1-100件を表示]
(0.179秒)
クラス
- BasicObject (12)
-
Psych
:: Handler (12) -
Psych
:: Nodes :: Scalar (24) - Regexp (12)
-
RubyVM
:: InstructionSequence (12) - String (23)
- Struct (4)
モジュール
- Kernel (12)
キーワード
- +@ (10)
- -@ (10)
-
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (9) - Rubyの起動 (7)
- [] (1)
-
_ _ id _ _ (12) - ` (12)
-
compile
_ option (12) - dedup (3)
-
literal
_ append (12) -
literal
_ concat (12) -
literal
_ concat _ dstr (12) -
literal
_ concat _ list (12) -
literal
_ concat _ string (12) - new (15)
-
ruby 1
. 8 . 4 feature (12) - scalar (12)
- ~ (12)
- パターンマッチ (12)
- リテラル (12)
- 正規表現 (12)
検索結果
先頭5件
-
Psych
:: Nodes :: Scalar :: LITERAL -> Integer (24317.0) -
literal style を表します。
...literal style を表します。
@see Psych::Nodes::Scalar.new,
Psych::Nodes::Scalar#style,
Psych::Handler#scalar... -
static NODE * literal
_ append(NODE *head , NODE *tail) (12300.0) -
-
static NODE * literal
_ concat(NODE *head , NODE *tail) (12300.0) -
-
static NODE * literal
_ concat _ dstr(NODE *head , NODE *tail) (12300.0) -
-
static NODE * literal
_ concat _ list(NODE *head , NODE *tail) (12300.0) -
-
static NODE * literal
_ concat _ string(NODE *head , NODE *tail , VALUE str) (12300.0) -
-
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=>......false,
# :trace_instruction=>true,
# :frozen_string_literal=>false,
# :debug_frozen_string_literal=>false,
# :coverage_enabled=>true,
# :debug_level=>0}
//}
@see RubyVM::InstructionSequence.compile_option=... -
リテラル (6012.0)
-
リテラル * num * string * backslash * exp * char * command * here * regexp * array * hash * range * symbol * percent
...リテラル
* num
* string
* backslash
* exp
* char
* command
* here
* regexp
* array
* hash
* range
* symbol
* percent
数字の1や文字列"hello world"のようにRubyのプログラムの中に直接
記述できる値の事をリテラルといいます。
===[a:n......ist[][ruby]{
1_000_000_000 # => 1000000000
0xffff_ffff # => 0xffffffff
//}
===[a:string] 文字列リテラル
//emlist[例][ruby]{
"this is a string expression\n"
'this is a string expression\n'
%q!I said, "You said, 'She said it.'"!
%!I said, "You said, 'She said it.'"!
%Q('This is it.'\n)
"th......is is multi line
string"
//}
文字列はダブルクォートまたはシングルクォートで囲まれています。
ダブルクォートで囲まれた文字列ではbackslashとexp(後述)が有効になります。
シングルクォートで囲まれた文字列では、
\\ (バックス... -
BasicObject
# _ _ id _ _ -> Integer (3106.0) -
各オブジェクトに対して一意な整数を返します。あるオブジェクトに対し てどのような整数が割り当てられるかは不定です。
...不定です。
Object#object_id と同じですが、#object_id は BasicObject に
はない事に注意してください。
//emlist[例][ruby]{
# frozen_string_literal: false
obj = Object.new
obj.object_id == obj.__id__ # => true
Object.new.__id__ == Object.new.__id__ # => fals......e
(21 * 2).__id__ == (21 * 2).__id__ # => true
"hello".__id__ == "hello".__id__ # => false
"hi".freeze.__id__ == "hi".freeze.__id__ # => true
//}
@see Object#object_id, 42840...