diff options
author | Eric B Merritt <[email protected]> | 2013-05-03 09:17:35 -0700 |
---|---|---|
committer | Eric <[email protected]> | 2013-05-09 16:43:59 -0700 |
commit | 0d5a803a28010cc956948b614408b9d38997e9a1 (patch) | |
tree | 56f23e0b7158f2dc2f7d5fc8782bfb0c87c781e4 /src/rcl_util.erl | |
parent | e68bbac546e084b4949dc01cbe88c03f6c667139 (diff) | |
download | relx-0d5a803a28010cc956948b614408b9d38997e9a1.tar.gz relx-0d5a803a28010cc956948b614408b9d38997e9a1.tar.bz2 relx-0d5a803a28010cc956948b614408b9d38997e9a1.zip |
support the creation or relups
Diffstat (limited to 'src/rcl_util.erl')
-rw-r--r-- | src/rcl_util.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rcl_util.erl b/src/rcl_util.erl index 61e1392..4afb26d 100644 --- a/src/rcl_util.erl +++ b/src/rcl_util.erl @@ -58,6 +58,9 @@ to_binary(String) when erlang:is_list(String) -> erlang:iolist_to_binary(String); to_binary(Bin) when erlang:is_binary(Bin) -> Bin. + +to_string(Binary) when erlang:is_binary(Binary) -> + erlang:binary_to_list(Binary); to_string(Atom) when erlang:is_atom(Atom) -> erlang:atom_to_list(Atom); to_string(Else) when erlang:is_list(Else) -> |