Skip to content

Instantly share code, notes, and snippets.

@Burgestrand
Last active October 29, 2020 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Burgestrand/e4f00a264fbdd732fa18eef8641f08f8 to your computer and use it in GitHub Desktop.
Save Burgestrand/e4f00a264fbdd732fa18eef8641f08f8 to your computer and use it in GitHub Desktop.
❯ cat log.txt
- "å"
- 2
- UTF-8
- [195, 165]
- true
- å
- true
File.write("log.txt", <<-STR)
- #{c.inspect}
- #{c.bytesize}
- #{c.encoding}
- #{c.bytes}
- #{c == "å"}
- #{chr}
- #{/./ === c}
STR
abort unless c == ":
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment