るりまサーチ

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

別のキーワード

  1. argf.class each
  2. argf.class each_line
  3. argf.class lines
  4. class new
  5. argf.class gets

ライブラリ

クラス

キーワード

検索結果

<< 1 2 3 ... > >>

TrueClass (44016.0)

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

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

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

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

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

JSON::Generator::GeneratorMethods::TrueClass (24016.0)

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

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

TrueClass#&(other) -> bool (24000.0)

other が真なら true を, 偽なら false を返します。

other が真なら true を, 偽なら false を返します。

@param other 論理積を行なう式です。

& は再定義可能な演算子に分類されていますので、通常は true & other のように使われます。

//emlist[例][ruby]{
p true & true #=> true
p true & false #=> false
p true & nil #=> false
p true & (1 == 1) #=> true
p true & (1 + 1) #=> true

p true.&(true) #=> true...

TrueClass#^(other) -> bool (24000.0)

other が真なら false を, 偽なら true を返します。

other が真なら false を, 偽なら true を返します。

@param other 排他的論理和を行なう式です。

^ は再定義可能な演算子に分類されていますので、通常は true ^ other のように使われます。

//emlist[例][ruby]{
p true ^ true #=> false
p true ^ false #=> true
p true ^ nil #=> true
p true ^ (1 == 1) #=> false
p true ^ (1 + 1) #=> false

p true.^(true) #=> ...

絞り込み条件を変える

TrueClass#inspect -> String (24000.0)

常に文字列 "true" を返します。

常に文字列 "true" を返します。

//emlist[例][ruby]{
true.inspect # => "true"
//}

TrueClass#to_s -> String (24000.0)

常に文字列 "true" を返します。

常に文字列 "true" を返します。

//emlist[例][ruby]{
true.to_s # => "true"
//}

TrueClass#|(other) -> bool (24000.0)

常に true を返します。

常に true を返します。

@param other 論理和を行なう式です。

| は再定義可能な演算子に分類されていますので、通常は true | other のように使われます。

//emlist[例][ruby]{
p true | true #=> true
p true | false #=> true
p true | nil #=> true
p true | (1 == 1) #=> true
p true | (1 + 1) #=> true

p true.|(true) #=> true
p true.|(false) #=> ...

Object#singleton_class -> Class (6244.0)

レシーバの特異クラスを返します。 まだ特異クラスがなければ、新しく作成します。

...れ NilClass, TrueClass,
FalseClass を返します。

@raise TypeError レシーバが Integer、Float、Symbol の場合に発生します。

//emlist[][ruby]{
Object.new.singleton_class #=> #<Class:#<Object:0xb7ce1e24>>
String.singleton_class #=> #<Class:String>
nil.singleton_class...
...#=> NilClass
//}

@see Object#class...
<< 1 2 3 ... > >>