るりまサーチ

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

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils rm_r
  5. fileutils cp_r

ライブラリ

クラス

キーワード

検索結果

<< 1 2 3 ... > >>

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

Alias of JSON::Generator::GeneratorMethods::FalseClass

...Alias of JSON::Generator::GeneratorMethods::FalseClass...

JSON::Generator::GeneratorMethods::FalseClass (24016.0)

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

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

FalseClass#&(other) -> false (21100.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.&(false) #=> false
p false.&(nil) #=> false
p false.&(1 == 1) #=> false
p false.&(1 + 1) #=> false
//}...

FalseClass#^(other) -> bool (21100.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) #=> true
p false.^(false) #=> false
p false.^(nil) #=> false
p false.^(1 == 1) #=> true
p false.^(1 + 1) #=> true
//}...

FalseClass#inspect -> String (21100.0)

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

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

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

絞り込み条件を変える

FalseClass#to_s -> String (21100.0)

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

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

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

FalseClass#|(other) -> bool (21100.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) #=> true
p false.|(false) #=> false
p false.|(nil) #=> false
p false.|(1 == 1) #=> true
p false.|(1 + 1) #=> true
//}...

JSON::Generator::GeneratorMethods::FalseClass#to_json(state_or_hash = nil) -> String (9100.0)

自身から生成した JSON 形式の文字列を返します。

...@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。

//emlist[例][ruby]{
r
equire "json"...

OptionParser#on(short, desc = "") {|v| ... } -> self (3113.0)

オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。

...ングオプションを同時に登録することもできます。
opts.on("-r", "--require LIBRARY"){|lib| ...}
これは以下と同値です。
opts.on("-r LIBRARY"){|lib| ...}
opts.on("--require LIBRARY"){|lib| ...}

複数の異なるオプションに同じブロックを一度に登...
...録することもできます。

opt.on('-v', '-vv'){|boolean| ...}
opt.on('--require X', '--need', '--dependon'){|x| ... }

@param short ショートオプションを表す文字列を指定します。
そのオプションが引数をとらない場合は、
//emlist{
on("-x...
...合 true を引数と
してブロックを評価します。
ショートオプションが引数をとる場合は、以下のようになります。
//emlist{
on("-x MANDATORY"){|val| ...} # " MANDATORY" の部分は任意の文字列で構いません
on("-xSTRING"...
<< 1 2 3 ... > >>