Created
          December 11, 2008 21:10 
        
      - 
      
 - 
        
Save nrk/34875 to your computer and use it in GitHub Desktop.  
    The "forward" slot in the io language has the same purpose of "method_missing" in Ruby
  
        
  
    
      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
    
  
  
    
  | Nrk := Object clone do ( | |
| forward := method("Method called: #{call message name}" interpolate println) | |
| ) | |
| Nrk foo("bar") # prints "Method called: foo" | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment