るりまサーチ

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

別のキーワード

  1. matrix tr
  2. string tr
  3. string tr_s
  4. string tr!
  5. string tr_s!

クラス

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

Object::TRUE -> TrueClass (24423.0)

非推奨です。代表的な真の値。true と同じ。

...非推奨です。代表的な真の値。true と同じ。

この定数は過去との互換性のために提供されています。擬似変数 true を使ってください。

Ruby では false と nil が偽として扱われます。
偽でない値(false でも nil でもない値) は全...

static VALUE rb_true(VALUE obj) (12200.0)

Qtrue を返します。

...Qtrue を返します。...

TrueClass (12048.0)

true のクラス。 true は TrueClass クラスの唯一のインスタンスです。 true は真を表す代表のオブジェクトです。

...true のクラス。
true
TrueClass クラスの唯一のインスタンスです。
true
は真を表す代表のオブジェクトです。...

JSON::Ext::Generator::GeneratorMethods::TrueClass (12000.0)

Alias of JSON::Generator::GeneratorMethods::TrueClass

...Alias of JSON::Generator::GeneratorMethods::TrueClass...

JSON::Generator::GeneratorMethods::TrueClass (12000.0)

TrueClass に JSON で使用するインスタンスメソッドを追加するためのモジュールです。

...TrueClass に JSON で使用するインスタンスメソッドを追加するためのモジュールです。...

絞り込み条件を変える

StringScanner#string -> String (9212.0)

スキャン対象にしている文字列を返します。

...uby]{
require 'strscan'

s = StringScanner.new('test string')
s.string # => "test string"
//}

返り値は freeze されていません。

//emlist[例][ruby]{
require 'strscan'

s = StringScanner.new('test string')
s.string.frozen? # => false
//}

なお、このメソッドは StringScanner.new...
...存したコードを書かないようにしましょう。

//emlist[例][ruby]{
require 'strscan'

str = 'test string'
s = StringScanner.new(str)
s.string == str # => true
s.string.eql?(str) # => true (将来は false になる可能性がある)
//}

また、返り値の文字列に対して...
...ないでください。

//emlist[例][ruby]{
require 'strscan'

str = 'test string'
s = StringScanner.new(str)
s.string.replace("0123")
s.scan(/\w+/) # => "0123" (将来は "test" が返る可能性あり)
str # => "0123" (将来は "test string" が返る可能性あり)
//}...

TracePoint.trace(*events) {|obj| ... } -> TracePoint (9206.0)

新しい TracePoint オブジェクトを作成して自動的にトレースを開始し ます。TracePoint.new のコンビニエンスメソッドです。

...新しい TracePoint オブジェクトを作成して自動的にトレースを開始し
ます。TracePoint.new のコンビニエンスメソッドです。

@param events トレースするイベントを String か Symbol で任
意の数指定します。指定できる値に...
...ついては
Tr
acePoint.new を参照してください。

//emlist[例][ruby]{
tr
ace = TracePoint.trace(:call) { |tp| [tp.lineno, tp.event] }
# => #<TracePoint:0x007f786a452448>

tr
ace.enabled? # => true
//}

@raise ThreadError ブロックを指定しなかった場合に発生し...

Matrix#antisymmetric? -> bool (9128.0)

行列が反対称行列 (交代行列、歪〔わい〕対称行列とも) ならば true を返します。

... true を返します。

@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します

//emlist[][ruby]{
require 'matrix'

Matrix[[0, -2, Complex(1, 3)], [2, 0, 5], [-Complex(1, 3), -5, 0]].antisymmetric? # => true
Matrix.empty.antisymmetric? # => true...
...Matrix[[1, 2, 3], [4, 5, 6], [7, 8, 9]].antisymmetric? # => false
# 対角要素が違う
Matrix[[1, -2, 3], [2, 0, 6], [-3, -6, 0]].antisymmetric? # => false
# 符号が違う
Matrix[[0, 2, -3], [2, 0, 6], [-3, 6, 0]].antisymmetric? # => false
//}...

Matrix#skew_symmetric? -> bool (9128.0)

行列が反対称行列 (交代行列、歪〔わい〕対称行列とも) ならば true を返します。

... true を返します。

@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します

//emlist[][ruby]{
require 'matrix'

Matrix[[0, -2, Complex(1, 3)], [2, 0, 5], [-Complex(1, 3), -5, 0]].antisymmetric? # => true
Matrix.empty.antisymmetric? # => true...
...Matrix[[1, 2, 3], [4, 5, 6], [7, 8, 9]].antisymmetric? # => false
# 対角要素が違う
Matrix[[1, -2, 3], [2, 0, 6], [-3, -6, 0]].antisymmetric? # => false
# 符号が違う
Matrix[[0, 2, -3], [2, 0, 6], [-3, 6, 0]].antisymmetric? # => false
//}...

Matrix#lower_triangular? -> bool (9116.0)

行列が下三角行列ならば true を返します。

...行列が下三角行列ならば true を返します。...

絞り込み条件を変える

<< 1 2 3 ... > >>