Skip to content

Instantly share code, notes, and snippets.

@actsasbuffoon
Created June 24, 2012 23:08
Show Gist options
  • Save actsasbuffoon/2985422 to your computer and use it in GitHub Desktop.
Save actsasbuffoon/2985422 to your computer and use it in GitHub Desktop.
Trying to create a collection of classes. Not going too well.
class TableDefinition(val name: String, val columns: Map[String, Class]) {
}
object TableDefinition {
val table_definitions = collection.mutable.Map[String, TableDefinition]()
def register(name: String, attributes: Map[String, Class]) {
TableDefinition.register(new TableDefinition(name, attributes) )
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment