Maru v0.12.0 Maru.Builder.Params View Source

Parse and build param_content block.

Link to this section Summary

Functions

Validator: at_least_one_of

Validator: exactly_one_of

Validator: mutually_exclusive

Define a param should be present or not

Parse params and generate Parameter struct

Define a param should be present

Link to this section Functions

Link to this macro at_least_one_of(attr_names) View Source (macro)

Validator: at_least_one_of

Link to this macro exactly_one_of(attr_names) View Source (macro)

Validator: exactly_one_of

Link to this macro given(attr, do_block) View Source (macro)
Link to this macro group(group_name, options \\ [], block) View Source (macro)

Define a params group.

Link to this macro mutually_exclusive(attr_names) View Source (macro)

Validator: mutually_exclusive

Link to this macro optional(attr_name) View Source (macro)

Define a param should be present or not.

Link to this macro optional(attr_name, block) View Source (macro)
Link to this macro optional(attr_name, options, list) View Source (macro)

Parse params and generate Parameter struct.

Link to this macro requires(attr_name) View Source (macro)

Define a param should be present.

Link to this macro requires(attr_name, block) View Source (macro)
Link to this macro requires(attr_name, options, list) View Source (macro)