lib/stars/formatter.rb in stars-0.2.0 vs lib/stars/formatter.rb in stars-0.2.1
- old
+ new
@@ -29,10 +29,10 @@
def characterize(number)
if number > 5
"* x #{number}"
else
- number.times.collect{'*'}.join(' ')
+ (1..number).collect{'*'}.join(' ')
end
end
def line_break
"\n"
\ No newline at end of file