XCribe v0.3.0 Xcribe.Helpers.Formatter View Source

This module implements a set of useful functions for formatter modules.

Link to this section Summary

Link to this section Functions

Link to this function

apply_template(template, keyword)

View Source

return the authorization header from a list of headers

Link to this function

content_type(headers, opts \\ [])

View Source

return the content type by a list of header params

Options:

  • default: a value to be returned when not found content-type header.
Link to this function

fetch_key(map, key, default)

View Source
Link to this function

format_path_parameter(name)

View Source

Format the path params.

format_path_parameter("user_id")
iex> "userId"
Link to this function

ident_lines(text, count)

View Source
Link to this function

prepare_and_captalize(string)

View Source
Link to this function

prepare_and_upcase(string)

View Source
Link to this function

remove_ending_argument(path)

View Source
Link to this function

replace_template(arg, template)

View Source