Completed
Push — master ( 320a23...301b78 )
by Borja
02:44
created

total_adivinanzas()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1.2963

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 4
ccs 1
cts 3
cp 0.3333
crap 1.2963
rs 10
1
# This method takes number of files in path
2 1
def total_adivinanzas
3
  path = './views/items/espadaroja/adivinanzas/*'
4
  Dir[path].length
5
end
6