Skip to content

Instantly share code, notes, and snippets.

@vogon
Created June 22, 2012 20:50
Show Gist options
  • Save vogon/2975094 to your computer and use it in GitHub Desktop.
Save vogon/2975094 to your computer and use it in GitHub Desktop.
shit that doesn't work
module CLR
class MDTable
def self.dump
puts @@schema
end
def self.word(name)
@@schema << "word #{name};"
end
def self.index(tables, name)
@@schema << "index #{tables}, #{name};"
end
end
class Module < MDTable
word :generation
index :string, :name
index :guid, :mvid
index :guid, :encid
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment