Maru.Params.Types.String (maru_params v0.2.5)

Buildin Type: String

Parser Arguments

* `:style` - string style
  * `:upcase`
  * `:downcase`
  * `:camelcase`
  * `:snakecase`

Validator Arguments

* `:regex` - validate input by regex
* `:values` - validate input is one item of given values

Examples

optional :id, String, regex: ~r/{7,10}/ optional :fruit, String, values: ["apple", "peach"] optional :code, String, style: :upcase

Link to this section Summary

Link to this section Functions

Link to this function

parse(input, args)

Link to this function

parser_arguments()

Link to this function

validate(parsed, arg2)

Link to this function

validator_arguments()