Skip to content

Instantly share code, notes, and snippets.

Guides are just XML files, but with special tags.

Guide format:

<title>[insert title here]</title>
<tool>
  <image src="image/path" />
</tool>
<content>
Some text about the thing in quiestion here, oh here is a link to a related <guide href="modid:guide_name">thing</guide>, and here is an image: <image src="image/path" height="16" align="right" />
# == read_ch.rb
# read a character without pressing enter and without printing to the screen
# root module
module ReadCh
@@keys = {
" " => :space,
"\t" => :tab,
"\r" => :return,
"\n" => :line_feed,