aboutsummaryrefslogtreecommitdiffstats
path: root/src/rcl_util.erl
diff options
context:
space:
mode:
authorEric B Merritt <[email protected]>2013-05-03 09:17:35 -0700
committerEric <[email protected]>2013-05-09 16:43:59 -0700
commit0d5a803a28010cc956948b614408b9d38997e9a1 (patch)
tree56f23e0b7158f2dc2f7d5fc8782bfb0c87c781e4 /src/rcl_util.erl
parente68bbac546e084b4949dc01cbe88c03f6c667139 (diff)
downloadrelx-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.erl3
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) ->