Sha256: e89a2eaaf09c042aeab56c12cc7ae5403a30ca49b718664664fb1612a8ae8657
Contents?: true
Size: 162 Bytes
Versions: 21
Compression:
Stored size: 162 Bytes
Contents
class Sum def initialize(start_num, end_num) @num = [start_num, end_num] end def exec (@num[0]..@num[1]).inject(0) { |sum, i| sum += i } end end
Version data entries
21 entries across 17 versions & 1 rubygems