lib/rantly.rb in rantly-0.2.0 vs lib/rantly.rb in rantly-0.3.0
- old
+ new
@@ -3,5 +3,13 @@
class Rantly
end
require 'rantly/generator'
+
+def Rantly(n=1,&block)
+ if n > 1
+ Rantly.map(n,&block)
+ else
+ Rantly.value(&block)
+ end
+end