るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.015秒)
トップページ > クラス:Struct[x] > バージョン:2.2.0[x] > クエリ:length[x]

別のキーワード

  1. _builtin length
  2. csv length
  3. dbm length
  4. set length
  5. rss length

ライブラリ

検索結果

Struct#length -> Integer (54325.0)

構造体のメンバの数を返します。

...注意] 本メソッドの記述は Struct の下位クラスのインスタンスに対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。

//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
joe =...

Struct#size -> Integer (9025.0)

構造体のメンバの数を返します。

...注意] 本メソッドの記述は Struct の下位クラスのインスタンスに対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。

//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
joe =...