Skip to content

Instantly share code, notes, and snippets.

@richardc
Created January 19, 2018 09:49
Show Gist options
  • Save richardc/b01541b8ef774ade419c1713b59f2695 to your computer and use it in GitHub Desktop.
Save richardc/b01541b8ef774ade419c1713b59f2695 to your computer and use it in GitHub Desktop.
def confine(hash)
puts hash
puts ! ! hash[:true]
end
confine :true => Proc.new { true }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment