Struct

Struct

ri

 ---------------------------------------------------------- Class: Struct
      A  Struct  is a convenient way to bundle a number of attributes
      together, using accessor methods, without having to write an
      explicit class.
 
      The  Struct  class is a generator of specific classes, each one of
      which is defined to hold a set of variables and their accessors. In
      these examples, we'll call the generated class ``_Customer_Class,''
      and we'll show an example instance of that class as
      ``_Customer_Inst.''
 
      In the descriptions that follow, the parameter _symbol_ refers to a
      symbol, which is either a quoted string or a  Symbol  (such as
       :name ).
 
 ------------------------------------------------------------------------
 
 
 Includes:
 ---------
      Enumerable(all?, any?, collect, detect, each_cons, each_slice,
      each_with_index, entries, enum_cons, enum_slice, enum_with_index,
      find, find_all, grep, include?, inject, map, max, member?, min,
      partition, reject, select, sort, sort_by, to_a, to_set, zip)
 
 
 Class methods:
 --------------
      new, new
 
 
 Instance methods:
 -----------------
      ==, , =, each, each_pair, eql?, hash, inspect, length, members,
      select, size, to_a, to_s, values, values_at

refe

 ==== Struct ====
 構造体クラスStruct.new はこのクラスサブクラスを新たに生成し
 ます。個々の構造体はサブクラスから new を使って生成します。個々
 の構造体サブクラスでは構造体のメンバに対するアクセスメソッドが定義され
 ています。
 ---- Singleton methods ----
 new
 ---- Instance methods ----
  = each each_pair length members size to_a values
 values_at
 ---- Singleton methods (inherited) ----
 ---- Instance methods (inherited) ----
 == === =~ __id__ __send__ _dump _load all? any? class clone
 collect detect display dup each_with_index entries eql?
 equal? extend find find_all freeze frozen? grep hash id
 include? initialize initialize_copy inject inspect
 instance_eval instance_of? instance_variable_get
 instance_variable_set instance_variables is_a? kind_of? map
 marshal_dump marshal_load max member? method method_missing
 methods min nil? object_id partition pretty_print
 pretty_print_cycle pretty_print_instance_variables
 private_methods protected_methods public_methods reject
 remove_instance_variable respond_to? select send
 singleton_method_added singleton_method_removed
 singleton_method_undefined singleton_methods sort sort_by
 taint tainted? to_ary to_hash to_int to_s to_str type
 untaint zip