Created
          November 11, 2015 20:19 
        
      - 
      
- 
        Save jamiehodge/d72fb1c86e6e2848a457 to your computer and use it in GitHub Desktop. 
    Private readers (dependencies)
  
        
  
    
      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
    
  
  
    
  | require 'base64' | |
| class Foo | |
| def initialize(bar:, baz: Base64.method(:encode64)) | |
| @bar = bar | |
| @baz = baz | |
| end | |
| def to_qux | |
| baz.(bar) | |
| end | |
| private | |
| attr_reader :bar, :baz | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment