Skip to content

Instantly share code, notes, and snippets.

@Groogy
Created April 11, 2021 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Groogy/4f60b620407a072675d20d4b4da291c1 to your computer and use it in GitHub Desktop.
Save Groogy/4f60b620407a072675d20d4b4da291c1 to your computer and use it in GitHub Desktop.
class Foo
invariant in_order?
def in_order?
@control_points.each.cons_pair.all? { |a, b| a.end_time < b.start_time }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment