length()
Returns the number of struct members.
Customer = Struct .new (:name, :address, :zip) joe = Customer.new ("Joe Smith", "123 Maple, Anytown NC", 12345) joe.length #=> 3
VALUE rb_struct_size(VALUE s) { return LONG2FIX(RSTRUCT_LEN(s)); }
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル