lib/zipfian.rb in zipfian-0.0.1 vs lib/zipfian.rb in zipfian-0.0.2

- old
+ new

@@ -1,7 +1,9 @@ require "zipfian/version" class Zipfian + attr_reader :n, :s + def initialize n, s unless n > 0 && n.is_a?(Integer) raise ArgumentError.new("Number of elements must be a positive integer") end unless s > 0