DarkMatter.Inflections.binary
You're seeing just the function
binary
, go back to DarkMatter.Inflections module for more information.
Specs
binary(atom() | String.t(), conversion() | [conversion(), ...]) :: String.t()
Converts either an atom or string to a string based on the conversion
.
Examples
iex> binary("_foo_bar123XYZ", :absinthe_pascal)
"_FooBar123XYZ"
iex> binary("_foo_bar123XYZ", :absinthe_camel)
"_fooBar123XYZ"
iex> binary(:fooBarz___TESTPDF, :pascal)
"FooBarzTestpdf"
iex> binary(:fooBarz___TESTPDF, :camel)
"fooBarzTestpdf"
iex> binary(:HTTP_PdfTEST, :underscore)
"http_pdf_test"
iex> binary("buses", :singular)
"bus"
iex> binary("business", :plural)
"businesses"
iex> binary("MerchantBusiness", [:plural, :underscore])
"merchant_businesses"