PassiveSupport.String.chomp
You're seeing just the function
chomp
, go back to PassiveSupport.String module for more information.
Link to this function
chomp(string)
Specs
Returns a copy of string
with a newline removed from the end.
If there is no newline at the end of string
, then it is returned unchanged
Examples
iex> chomp("hello world!\n")
"hello world!"
iex> chomp("hello\nworld!")
"hello\nworld!"
iex> chomp("multiline!\n\n")
"multiline!\n"
iex> chomp("single line!")
"single line!"