Module: TokyoMetro::Modules::Common::ToFactory::Seed::Group

Included in:
Hash, List
Defined in:
lib/tokyo_metro/modules/common/to_factory/seed/group.rb

Overview

Note:

Hash , List で使用

DB に配列、ハッシュを流し込むためのモジュール

Instance Method Summary collapse

Instance Method Details

#seed(*variables, class_name: self.class, indent: 0, no_display: false, not_on_the_top_layer: false, display_number: true, other_info: nil, interrupt: false) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/tokyo_metro/modules/common/to_factory/seed/group.rb', line 5

def seed(
  *variables ,
  #----- ★ factory_name
  class_name: self.class ,
  #---- ★ method_name
  indent: 0 ,
  no_display: false ,
  not_on_the_top_layer: false ,
  display_number: true ,
  other_info: nil ,
  interrupt: false
)
  __seed__(
    *variables ,
    factory_name: :factory_for_seeding_this_class , # ★
    class_name: class_name ,
    method_name: __method__ , # ★
    indent: indent ,
    no_display: no_display ,
    not_on_the_top_layer: not_on_the_top_layer ,
    display_number: display_number ,
    other_info: other_info ,
    interrupt: interrupt
  )
end