Skip to content

Instantly share code, notes, and snippets.

@mpage
Created August 13, 2012 18:17
Show Gist options
  • Save mpage/3342901 to your computer and use it in GitHub Desktop.
Save mpage/3342901 to your computer and use it in GitHub Desktop.
class User
SCHEMA = Membrane::SchemaParser.parse do
{ "foo" => String,
"bar" => [Integer],
}
end
end
class Org
SCHEMA = Membrane::SchemaParser.parse do
{ "baz" => String,
"users" => [User::SCHEMA],
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment