Last active
December 19, 2015 00:58
-
-
Save neektza/5872010 to your computer and use it in GitHub Desktop.
Code snippets for blog post "Objects and Ruby"
This file contains 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 SomeServiceObject | |
def initialize(foo) | |
@foo = foo | |
end | |
def a_method | |
manipulate(foo) | |
end | |
end | |
SomeServiceObject.new(foo).a_method |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment