Liking cljdoc? Tell your friends :D

hydrox.analyse.test.common


analyse-testcljmultimethod

source

frameworkscljmultimethod

source

gather-metaclj

(gather-meta zloc)

gets the metadata for a particular form (-> (z/of-string "^{:refer clojure.core/+ :added "0.1"}\n(fact ...)") z/down z/right z/down gather-meta) => '{:added "0.1", :ns clojure.core, :var +, :refer clojure.core/+}

gets the metadata for a particular form
(-> (z/of-string "^{:refer clojure.core/+ :added \"0.1\"}\n(fact ...)")
    z/down z/right z/down
    gather-meta)
=> '{:added "0.1", :ns clojure.core, :var +, :refer clojure.core/+}
sourceraw docstring

gather-stringclj

(gather-string zloc)

creates correctly spaced code string from normal docstring

(-> (z/of-string ""hello\nworld\nalready"") (gather-string) (str)) => ""hello\n world\n already""

creates correctly spaced code string from normal docstring

(-> (z/of-string "\"hello\nworld\nalready\"")
    (gather-string)
    (str))
=> ""hello\n  world\n  already""
sourceraw docstring

join-nodesclj

(join-nodes nodes)
source

strip-quotesclj

(strip-quotes s)

takes away the quotes from a string for formatting purposes

(strip-quotes ""hello"") => "hello"

takes away the quotes from a string for formatting purposes

(strip-quotes "\"hello\"")
=> "hello"
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close