Ad
  • Custom User Avatar

    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:"

    It is in the Ruby documentation. No, it's not Symbols (:Ruby) but it's quite a mess since originally this was intended as a Number literal but doing ?a to get 97 was confusing and it wasn't intuitive so now it's a String and people can just do ?a.ord for 97.

  • Custom User Avatar

    Sorry if this is real nooby question, but why does ?* == * as a string
    I cant find anything about ?* in the Ruby documentation
    Edit: also how do I put code into the little boxes like Unihedron has?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution