10件ヒット
[1-10件を表示]
(0.025秒)
種類
- インスタンスメソッド (6)
- モジュール (2)
- 定数 (1)
- クラス (1)
クラス
- FalseClass (5)
- Object (1)
検索結果
先頭5件
-
FalseClass (132049.0)
-
false のクラス。 false は FalseClass クラスの唯一のインスタンスです。 false は nil オブジェクトとともに偽を表し、 その他の全てのオブジェクトは真です。
false のクラス。
false は FalseClass クラスの唯一のインスタンスです。
false は nil オブジェクトとともに偽を表し、
その他の全てのオブジェクトは真です。 -
JSON
:: Ext :: Generator :: GeneratorMethods :: FalseClass (72049.0) -
Alias of JSON::Generator::GeneratorMethods::FalseClass
Alias of JSON::Generator::GeneratorMethods::FalseClass -
JSON
:: Generator :: GeneratorMethods :: FalseClass (72049.0) -
FalseClass に JSON で使用するインスタンスメソッドを追加するためのモジュールです。
FalseClass に JSON で使用するインスタンスメソッドを追加するためのモジュールです。 -
FalseClass
# &(other) -> false (72001.0) -
常に false を返します。
常に false を返します。
@param other 論理積を行なう式です。
& は再定義可能な演算子に分類されていますので、通常は false & other の形で使われます。
//emlist[例][ruby]{
p false & true #=> false
p false & false #=> false
p false & nil #=> false
p false & (1 == 1) #=> false
p false & (1 + 1) #=> false
p false.&(true) #=> false
p false.&... -
FalseClass
# ^(other) -> bool (72001.0) -
other が真なら true を, 偽なら false を返します。
other が真なら true を, 偽なら false を返します。
@param other 排他的論理和を行なう式です。
^ は再定義可能な演算子に分類されていますので、通常は false ^ other の形で使われます。
//emlist[例][ruby]{
p false ^ true #=> true
p false ^ false #=> false
p false ^ nil #=> false
p false ^ (1 == 1) #=> true
p false ^ (1 + 1) #=> true
p false.^(true) ... -
FalseClass
# inspect -> String (72001.0) -
常に文字列 "false" を返します。
常に文字列 "false" を返します。
//emlist[例][ruby]{
false.to_s # => "false"
//} -
FalseClass
# to _ s -> String (72001.0) -
常に文字列 "false" を返します。
常に文字列 "false" を返します。
//emlist[例][ruby]{
false.to_s # => "false"
//} -
FalseClass
# |(other) -> bool (72001.0) -
other が真なら true を, 偽なら false を返します。
other が真なら true を, 偽なら false を返します。
@param other 論理和を行なう式です。
| は再定義可能な演算子に分類されていますので、通常は false | other の形で使われます。
//emlist[例][ruby]{
p false | true #=> true
p false | false #=> false
p false | nil #=> false
p false | (1 == 1) #=> true
p false | (1 + 1) #=> true
p false.|(true) #=... -
JSON
:: Generator :: GeneratorMethods :: FalseClass # to _ json(state _ or _ hash = nil) -> String (18001.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
"false" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
false.to_json # => "false"
//} -
Object
:: FALSE -> FalseClass (604.0) -
非推奨です。代表的な偽の値。false と同じ。
非推奨です。代表的な偽の値。false と同じ。
この定数は過去との互換性のために提供されています。擬似変数 false を使ってください。
Ruby では false と nil が偽として扱われます。
偽でない値(false でも nil でもない値) は全て真とみなされます。