Skip to content

Commit

Permalink
Documentation and groovy environment changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cap_protect committed Nov 4, 2011
1 parent be2ce8c commit a0219cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.textile
Expand Up @@ -15,13 +15,13 @@ For groovy scripts following classes avialable: HTTP and Variations. HTTP class
h3. Variations


select(prob1, closure1, prob2, closure2, prob3, closure3, ...)
h4. 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


any(arguments...);
h4. any(arguments...);


Select one of arguments with equal probability.
Expand All @@ -30,19 +30,19 @@ Select one of arguments with equal probability.
h3. HTTP


get([Closure reporter, ]String ...urls)
h4. 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.


parse(Pattern regex, String ...html)
h4. 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.


resolve(String url, String path)
h4. resolve(String url, String path)


Resolves path relative to url.
Expand Down

0 comments on commit a0219cb

Please sign in to comment.