Current section
Files
Jump to
Current section
Files
lib/ex_rlp.ex
defmodule ExRLP do
alias ExRLP.Encoder
alias ExRLP.Decoder
@moduledoc File.read!("#{__DIR__}/../README.md")
@spec encode(String.t | non_neg_integer | list) :: String.t
def encode(item) do
item |> Encoder.encode
end
@spec decode(String.t) :: String.t | list
def decode(item) do
item |> Decoder.decode
end
end