Skip to content

Instantly share code, notes, and snippets.

@jstotz
Created July 23, 2009 21:56
Show Gist options
  • Save jstotz/153662 to your computer and use it in GitHub Desktop.
Save jstotz/153662 to your computer and use it in GitHub Desktop.
json = getJsonFromServer();
rule = Rule.from_json(json)
rule.condition_set
html = getHtmlRepresentation();
rule = Rule.from_html(html)
rule.condition_set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment