Skip to content

Instantly share code, notes, and snippets.

@neektza
Last active December 19, 2015 00:58
Show Gist options
  • Save neektza/5872010 to your computer and use it in GitHub Desktop.
Save neektza/5872010 to your computer and use it in GitHub Desktop.
Code snippets for blog post "Objects and Ruby"
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