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
#inspect ⇒ Object
24
25
26
|
# File 'lib/carmen/world.rb', line 24
def inspect
"<##{self.class}>"
end
|
#name ⇒ Object
10
|
# File 'lib/carmen/world.rb', line 10
def name; 'Earth'; end
|
#path ⇒ Object
20
21
22
|
# File 'lib/carmen/world.rb', line 20
def path
'world'
end
|
#subregion_class ⇒ Object
16
17
18
|
# File 'lib/carmen/world.rb', line 16
def subregion_class
Country
end
|
#subregion_data_path ⇒ Object
12
13
14
|
# File 'lib/carmen/world.rb', line 12
def subregion_data_path
'world.yml'
end
|
#type ⇒ Object
9
|
# File 'lib/carmen/world.rb', line 9
def type; 'world'; end
|