るりまサーチ

最速Rubyリファレンスマニュアル検索!
5899件ヒット [1-100件を表示] (0.144秒)

別のキーワード

  1. object false
  2. _builtin false
  3. rb_false
  4. false
  5. false object

クラス

キーワード

検索結果

<< 1 2 3 ... > >>

String#+@ -> String | self (6131.0)

self が freeze されている文字列の場合、元の文字列の複製を返します。 freeze されていない場合は self を返します。

...れていない場合は self を返します。

//emlist[例][ruby]{
# frozen_string_literal: false

original_text = "text"
unfrozen_text = +original_text
unfrozen_text.frozen? # => false
original_text == unfrozen_text # => true
original_text.equal?(unfrozen_text) # => tru...
...e

original_text = "text".freeze
unfrozen_text = +original_text
unfrozen_text.frozen? # => false
original_text == unfrozen_text # => true
original_text.equal?(unfrozen_text) # => false
//}

@
see String#-@...

String#-@ -> String | self (6119.0)

self が freeze されている文字列の場合、self を返します。 freeze されていない場合は元の文字列の freeze された (できる限り既存の) 複製を返します。

...

//emlist[例][ruby]{
# frozen_string_literal: false

original_text = "text"
frozen_text = -original_text
frozen_text.frozen? # => true
original_text == frozen_text # => true
original_text.equal?(frozen_text) # => false

original_text = "text".freeze
frozen_text = -origi...
...nal_text
frozen_text.frozen? # => true
original_text == frozen_text # => true
original_text.equal?(frozen_text) # => true
//}

@
see String#+@...

FalseClass#&(other) -> false (3262.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 (3125.0)

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

... 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#|(other) -> bool (3125.0)

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

...偽なら 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 (3025.0)

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

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

"false" という文字列を返します。

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

//emlist[例][ruby]{
require "json"

false
.to_json # => "false"
//}...

String#dedup -> String | self (3019.0)

self が freeze されている文字列の場合、self を返します。 freeze されていない場合は元の文字列の freeze された (できる限り既存の) 複製を返します。

...

//emlist[例][ruby]{
# frozen_string_literal: false

original_text = "text"
frozen_text = -original_text
frozen_text.frozen? # => true
original_text == frozen_text # => true
original_text.equal?(frozen_text) # => false

original_text = "text".freeze
frozen_text = -origi...
...nal_text
frozen_text.frozen? # => true
original_text == frozen_text # => true
original_text.equal?(frozen_text) # => true
//}

@
see String#+@...

REXML::Document#write(output = $stdout, indent = -1, transitive = false, ie_hack = false, encoding=nil) -> () (229.0)

output に XML 文書を出力します。

...はキーワード引数による引数指定が可能です。

@
param output 出力先(IO のように << で書き込めるオブジェクト)
@
param indent インデントのスペースの数(-1 だとインデントしない)
@
param transitive XMLではインデントのスペースでDOMが...
...これに真を渡すと、XMLのDOMに余計な要素が加わらないように
空白の出力を適当に抑制するようになる
@
param ie_hack IEはバージョンによってはXMLをちゃんと解釈できないので、
それに対応したXMLを出力するかど...

REXML::Document#write(output: $stdout, indent: -1, transitive: false, ie_hack: false, encoding: nil) -> () (229.0)

output に XML 文書を出力します。

...はキーワード引数による引数指定が可能です。

@
param output 出力先(IO のように << で書き込めるオブジェクト)
@
param indent インデントのスペースの数(-1 だとインデントしない)
@
param transitive XMLではインデントのスペースでDOMが...
...これに真を渡すと、XMLのDOMに余計な要素が加わらないように
空白の出力を適当に抑制するようになる
@
param ie_hack IEはバージョンによってはXMLをちゃんと解釈できないので、
それに対応したXMLを出力するかど...

Gem::SourceInfoCache#search(pattern, platform_only = false, all = false) -> [Gem::Specification] (227.0)

与えられた条件を満たす Gem::Specification のリストを返します。

...ストを返します。

@
param pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。

@
param platform_only 真を指定するとプラットフォームが一致するもののみを返します。デフォルトは偽です。

@
param all 真を指定す...
...るとキャッシュを更新してから検索を実行します。

@
see Gem::SourceIndex#search...

絞り込み条件を変える

<< 1 2 3 ... > >>