Completed
Push — master ( fde657...c4061e )
by Borja
03:18
created

Execracion.elemento()   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1.125

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
dl 0
loc 3
ccs 1
cts 2
cp 0.5
crap 1.125
rs 10
c 1
b 0
f 0
1
# Todos los hechizos de plegaria
2 1
class Plegaria < Magia
3 1
  def nivel
4
    ((id / 8) + 1).to_i
5
  end
6
7 1
  def elemento
8
    'plegaria'
9
  end
10
end
11
12 1
class Execracion < Plegaria
0 ignored issues
show
Coding Style introduced by
This class should have a documentation comment as per coding style.
Loading history...
13 1
  def elemento
14
    'execración'
15
  end
16
end
17