るりまサーチ

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

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

検索結果

<< 1 2 3 > >>

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...
<< 1 2 3 > >>