るりまサーチ

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

別のキーワード

  1. matrix identity
  2. hash compare_by_identity
  3. hash compare_by_identity?
  4. _builtin compare_by_identity
  5. _builtin compare_by_identity?

ライブラリ

クラス

モジュール

検索結果

<< 1 2 > >>

Matrix.identity(n) -> Matrix (15101.0)

n次の単位行列を生成します。

n次の単位行列を生成します。

@param n 単位行列の次元

単位行列とは、対角要素が全て1で非対角要素が全て0であるような行列のことです。

Hash#compare_by_identity -> self (6125.0)

ハッシュのキーの一致判定をオブジェクトの同一性で判定するように変更します。

...y_identity? #=> false
p h1["a"] #=> 100

h1.compare_by_identity

p h1.compare_by_identity? #=> true
p h1["a"] #=> nil # この"a"と最初の"a"とは違うオブジェクト
p h1[:c] #=> "c" # 同じ内容のシンボルはすべて同一
//}

@see Hash#compare_by_identity?...

Hash#compare_by_identity? -> bool (6125.0)

ハッシュがキーの一致判定をオブジェクトの同一性を用いて行っているならば真を返します。

...ハッシュがキーの一致判定をオブジェクトの同一性を用いて行っているならば真を返します。

//emlist[例][ruby]{
h1 = {}
p h1.compare_by_identity? #=> false

h1.compare_by_identity

p h1.compare_by_identity? #=> true
//}

@see Hash#compare_by_identity...

ruby 1.9 feature (24.0)

ruby 1.9 feature ruby version 1.9.0 は開発版です。 以下にあげる機能は将来削除されたり互換性のない仕様変更がなされるかもしれません。 1.9.1 以降は安定版です。 バグ修正がメインになります。

...2006-09-14

: digest.rb
: Digest::Base.file

=== 2006-09-13

: Hash#compare_by_identity
: Hash#compare_by_identity?
: Hash#identical
: Hash#identical?

=== 2006-09-12

: Hash#compare_by_identity
: Hash#compare_by_identity?

=== 2006-09-11

: Hash#identical
: Hash#identical?

=== 2006-08-31

: Array#...

NEWS for Ruby 2.4.0 (12.0)

NEWS for Ruby 2.4.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...te
value is returned. Otherwise, Nth child is returned. This is
backward compatible change.

* set
* Set#compare_by_identity, Set#compare_by_identity? を追加
12210

* webrick
* "," をクッキーの区切り文字として許可しなくなりました 12791

===...

絞り込み条件を変える

Net::HTTPHeader#each {|name, val| .... } -> () (6.0)

保持しているヘッダ名とその値をそれぞれ ブロックに渡して呼びだします。

...mlist[例][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.each_header { |key,value| puts "#{key} = #{value}" }

# => accept-encoding = gzip;q=1.0,deflate;q=0.6,identity;q=0.3
# => accept = */*
# => user-agent = Ruby
//}...

Net::HTTPHeader#each_header {|name, val| .... } -> () (6.0)

保持しているヘッダ名とその値をそれぞれ ブロックに渡して呼びだします。

...mlist[例][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.each_header { |key,value| puts "#{key} = #{value}" }

# => accept-encoding = gzip;q=1.0,deflate;q=0.6,identity;q=0.3
# => accept = */*
# => user-agent = Ruby
//}...

Net::HTTPHeader#each_value {|value| .... } -> () (6.0)

保持しているヘッダの値をブロックに渡し、呼びだします。

...れる文字列は ", " で連結したものです。

//emlist[例][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.each_value { |value| puts value }

# => gzip;q=1.0,deflate;q=0.6,identity;q=0.3
# => */*
# => Ruby
//}...

Ruby用語集 (6.0)

Ruby用語集 A B C D E F G I J M N O R S Y

...つ実行させたりしながら、
対話的に式の値を表示させることができる。

→ブレークポイント

: 同一性
: identity
Ruby における値の同一性は、それらの値が同じオブジェクトである(つまり
オブジェクト ID が一致する...
<< 1 2 > >>