Created
September 26, 2016 22:20
-
-
Save jacknoble/629041a9fb85ecd88ad305aa9bdda15a to your computer and use it in GitHub Desktop.
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 FooBar | |
| def self.call(arg) | |
| new(arg).call | |
| end | |
| def initialize(thing) | |
| @thing = thing | |
| end | |
| def call | |
| # ... | |
| end | |
| end | |
| FooBarService.call(thing) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment