Skip to content

Instantly share code, notes, and snippets.

@rinaldifonseca
Created September 30, 2014 20:55
Show Gist options
  • Save rinaldifonseca/634d526248b470c4e19f to your computer and use it in GitHub Desktop.
Save rinaldifonseca/634d526248b470c4e19f to your computer and use it in GitHub Desktop.
Publisher
#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