Skip to content

Instantly share code, notes, and snippets.

@samsonjs
Created January 18, 2010 05:02
Show Gist options
  • Save samsonjs/279794 to your computer and use it in GitHub Desktop.
Save samsonjs/279794 to your computer and use it in GitHub Desktop.
require 'cstruct'
class Base < CStruct
int :type
int :flags
end
class Frobulator < Base
uint :frob_limit
end
class Snazzifier < Base
int :snazz_level
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment