Liking cljdoc? Tell your friends :D

properties.type-support


as-codecljmultimethod

Given a value, this multimethod will prepare this value for runtime code generation. The multimethod dispatches on the type of the value. If the type has no method, the value will be returned unaltered.

Parameters: value - the value to encode

Returns: The encoded value is returned.

Given a value, this multimethod will prepare this value for runtime code
generation. The multimethod dispatches on the type of the value. If the type
has no method, the value will be returned unaltered.

Parameters:
  value - the value to encode

Returns:
  The encoded value is returned.
sourceraw docstring

from-strcljmultimethod

Given a type, this multimethod converts a string to a value of that type. If the type has no method, the read-string function will be used.

Parameters: prop-type - the type used to dispatch on str-val - the string to parse

Returns: It returns the value from the string.

Given a type, this multimethod converts a string to a value of that type. If
the type has no method, the read-string function will be used.

Parameters:
  prop-type - the type used to dispatch on
  str-val   - the string to parse

Returns:
  It returns the value from the string.
sourceraw docstring

implicit-defaultcljmultimethod

This multimethod returns the implicit default value for a given type. If the type has no method, the multimethod returns nil.

Parameters: prop-type - the type to find the implicit default for

Returns: It returns the implicit default value for the given type. If there isn't one, it returns nil.

This multimethod returns the implicit default value for a given type. If the
type has no method, the multimethod returns nil.

Parameters:
  prop-type - the type to find the implicit default for

Returns:
  It returns the implicit default value for the given type. If there isn't
  one, it returns nil.
sourceraw docstring

type?cljmultimethod

This multimethod acts as a predicate to detect if a given value has a given type. If the type has no method, the result will check the type of the value to see if it is a subtype of the dispatch type.

Parameters: prop-type - the type the value should have value - the value being tested.

Returns: It returns true, if the value is of the correct type, otherwise false.

This multimethod acts as a predicate to detect if a given value has a given
type. If the type has no method, the result will check the type of the value
to see if it is a subtype of the dispatch type.

Parameters:
  prop-type - the type the value should have
  value     - the value being tested.

Returns:
  It returns true, if the value is of the correct type, otherwise false.
sourceraw docstring

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

× close