Created
          February 2, 2012 05:30 
        
      - 
      
- 
        Save ukstudio/1721705 to your computer and use it in GitHub Desktop. 
    alias
  
        
  
    
      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
    
  
  
    
  | class Foo | |
| def self.show | |
| 'foo' | |
| end | |
| class << self | |
| def show_with_bar | |
| "#{show_without_bar} bar" | |
| end | |
| alias :show_without_bar :show | |
| alias :show :show_with_bar | |
| end | |
| end | |
| p Foo.show | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment