Created
September 30, 2014 20:55
-
-
Save rinaldifonseca/634d526248b470c4e19f to your computer and use it in GitHub Desktop.
Publisher
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
#Version 1 | |
class Publisher | |
def initialize(page) | |
@page = page | |
end | |
def publish | |
# do things that publish @page | |
end | |
end | |
#Version 2 | |
class Publisher | |
def publish(page) | |
# do things that publish page | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment