lib/24point/base.rb in 24point-0.0.1 vs lib/24point/base.rb in 24point-0.0.2
- old
+ new
@@ -15,9 +15,10 @@
@given_numbers = args
@all_expression = []
end
def result
+ return all_expression if all_expression != []
given_numbers.permutation.to_a.uniq.each do |given_number|
@number = given_number
@expression = given_number.collect{|number| number.to_s}
calculate(count_of_number)
end
\ No newline at end of file