Weebo.Formattable protocol
Protocol that handles trasforming Elixir values into their XML-RPC representations.
Summary↑
format(any) | Returns a tuple-representation of XML that represents the value passed in |
Types ↑
t :: term
Functions
Specs:
- format(any) :: Weebo.xml_tree
Returns a tuple-representation of XML that represents the value passed in.
Example
defimpl Weebo.Formattable, for: Integer do
def format(int) do
{:int, [Integer.to_string(int)]}
end
end