Class: Carmen::World

Inherits:
Region show all
Includes:
Singleton
Defined in:
lib/carmen/world.rb

Instance Attribute Summary

Attributes inherited from Region

#code, #parent

Instance Method Summary collapse

Methods inherited from Region

#<=>, #initialize, #reset!, #subregions, #subregions?, #to_hash, #to_s

Constructor Details

This class inherits a constructor from Carmen::Region

Instance Method Details

#inspectObject


24
25
26
# File 'lib/carmen/world.rb', line 24

def inspect
  "<##{self.class}>"
end

#nameObject


10
# File 'lib/carmen/world.rb', line 10

def name; 'Earth'; end

#pathObject


20
21
22
# File 'lib/carmen/world.rb', line 20

def path
  'world'
end

#subregion_classObject


16
17
18
# File 'lib/carmen/world.rb', line 16

def subregion_class
  Country
end

#subregion_data_pathObject


12
13
14
# File 'lib/carmen/world.rb', line 12

def subregion_data_path
  'world.yml'
end

#typeObject


9
# File 'lib/carmen/world.rb', line 9

def type; 'world'; end