code register log in programs messages download about privacy terms french production
home / documentation / String
examples
hello world
input
"hello world"
result
"hello world"
one to string
input
1.to_string
result
"1"
symbol to string
input
:hello
result
"hello"
string new hello
input
String.new(:hello)
result
"hello"
hello days from now
input
"hello {2.days.from_now}"
result
"hello 2025-06-23 18:23:04 UTC"
instance functions