Skip to content

Instantly share code, notes, and snippets.

@Groogy
Last active July 3, 2017 21:35
Show Gist options
  • Save Groogy/6813436be6b20cd1992c869096b60b66 to your computer and use it in GitHub Desktop.
Save Groogy/6813436be6b20cd1992c869096b60b66 to your computer and use it in GitHub Desktop.
class Foo
invariant( some_other_test ) # Run at entry of every contract
# First argument run at function start, second argument run at function end
contract baz == true, @thing.nil? == false,
def bar(val)
@thing = val.do_thing
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment