public
Description: generate random data from a Regular Expression
Clone URL: git://github.com/benburkert/randexp.git
merged agile's patch & updated the changelog
benburkert (author)
Thu Jul 24 10:09:01 -0700 2008
commit  7a090e91c8595cf30a3bc4fce22f0c351e28b983
tree    13b091f1b85a6a7b85b53164c35eb62b3b93fca0
parent  c0068d6c3941b7dacdafcf72eaa9d41e7ad3ad37
...
 
 
 
1
2
3
...
1
2
3
4
5
6
0
@@ -1,3 +1,6 @@
0
+== 0.1.2 "I'm Not Saying It's Not Beta"
0
+* Changed rand to Kernel#rand to avoid conflicting with rails (thanks agile!)
0
+
0
 == 0.1.1 "Still Quite Beta" 2008-07-20
0
 * Added Range#of method.
0
 * Heavy refactoring of the Parser.parse method.
...
3
4
5
6
7
 
 
8
9
10
...
3
4
5
 
 
6
7
8
9
10
0
@@ -3,7 +3,7 @@ class Range
0
     to_a.pick
0
   end
0
 
0
- def of(&blk)
0
- pick.of(&blk)
0
+ def of
0
+ pick.of { yield }
0
   end
0
 end
0
\ No newline at end of file

Comments

    No one has commented yet.