- 
      
 - 
        
Save tobiasvl/bf749d72d74da7f0efce to your computer and use it in GitHub Desktop.  
    Hack to execute one block after another based on a boolean value
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | def true.-(a, &b) a[] end | |
| def false.-(a, &b) b[] end | |
| (1 == 1).--> { :ok } { fail Math } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment