Class: TokyoMetro::Factory::Seed::Common::Group

Inherits:
Object
  • Object
show all
Includes:
OdptCommon::CalcTime, SetOptionalVariables
Defined in:
lib/tokyo_metro/factory/seed/common/group.rb

Direct Known Subclasses

Hash, List

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args, class_name, method_name, indent, no_display, not_on_the_top_layer, display_number, other_info, interrupt) ⇒ Group

Returns a new instance of Group.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/tokyo_metro/factory/seed/common/group.rb', line 6

def initialize( *args , class_name , method_name , indent , no_display , not_on_the_top_layer , display_number , other_info , interrupt )
  if no_display and display_number
    raise "Error: Do you want to display number? You set both of \'no_display\' and \'display_number\'."
  end
  @class_name = class_name
  @method_name = method_name
  @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

  set_optional_variables( args )
end

Class Method Details

.process(*variables) ⇒ Object



23
24
25
# File 'lib/tokyo_metro/factory/seed/common/group.rb', line 23

def self.process( *variables )
  self.new( *variables ).seed
end