Test Failed
Push — master ( 9ca193...e351fa )
by Borja
07:59 queued 03:37
created

city()   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
1
# YAML DB Loader
2
def cities
3
  load_yaml('ciudades')
4
end
5
6
def city(id)
7
  cities[id]
8
end
9
10
def ciudad?(jugador)
11
  cities.select { |c| c['master'] == jugador }
12
end
13