Browse files

Documentation and groovy environment changes

  • Loading branch information...
1 parent 0947c7d commit be2ce8c997d639bb6feafd3c424eb4af4fdafa60 cap_protect committed Nov 4, 2011
Showing with 10 additions and 10 deletions.
  1. +10 −10 README.textile
View
20 README.textile
@@ -15,37 +15,37 @@ For groovy scripts following classes avialable: HTTP and Variations. HTTP class
h3. Variations
- select(prob1, closure1, prob2, closure2, prob3, closure3, ...)
+select(prob1, closure1, prob2, closure2, prob3, closure3, ...)
- Select one of the closures to execute depending on probability. Probabilites could be not normalized: i.e. sum(prob~i~) != 1.0
+Select one of the closures to execute depending on probability. Probabilites could be not normalized: i.e. sum(prob~i~) != 1.0
- any(arguments...);
+any(arguments...);
- Select one of arguments with equal probability.
+Select one of arguments with equal probability.
h3. HTTP
- get([Closure reporter, ]String ...urls)
+get([Closure reporter, ]String ...urls)
- Gets value of one(!randomly selected) of urls and reads line by line calling reporter(line). If reporter is not specified returns array of strings - lines of this file.
+Gets value of one(!randomly selected) of urls and reads line by line calling reporter(line). If reporter is not specified returns array of strings - lines of this file.
- parse(Pattern regex, String ...html)
+parse(Pattern regex, String ...html)
- Process text throught regular expression and selects regular expression groups. Returns 2-d array if several groups used and 1-d if one.
+Process text throught regular expression and selects regular expression groups. Returns 2-d array if several groups used and 1-d if one.
- resolve(String url, String path)
+resolve(String url, String path)
- Resolves path relative to url.
+Resolves path relative to url.
h2. License

0 comments on commit be2ce8c

Please sign in to comment.