This comment is hidden because it contains spoiler information about the solution
https://docs.ruby-lang.org/en/master/doc/syntax/literals_rdoc.html
"There is also a character literal notation to represent single character strings, which syntax is a question mark (?) followed by a single character or escape sequence that corresponds to a single codepoint in the script encoding:"
Apparently (I didn't know the syntax either) ? can be used to create literal strings of length one.
E.g.
irb(main):014:0> ?. => "." irb(main):015:0> ?" => "\"" irb(main):016:0> ?- => "-" irb(main):017:0> ?a => "a"
I guess this was just shorter than "." ^^
"."
Dont thanks me. Thanks CW :D I learned it in here.
welcome to valhalla... ;)
Thanks haha!
you cannot... ;)
Loading collection data...
This comment is hidden because it contains spoiler information about the solution
https://docs.ruby-lang.org/en/master/doc/syntax/literals_rdoc.html
"There is also a character literal notation to represent single character strings, which syntax is a question mark (?) followed by a single character or escape sequence that corresponds to a single codepoint in the script encoding:"
Apparently (I didn't know the syntax either) ? can be used to create literal strings of length one.
E.g.
I guess this was just shorter than
"."
^^Dont thanks me. Thanks CW :D I learned it in here.
welcome to valhalla... ;)
Thanks haha!
you cannot... ;)