Skip to content

Instantly share code, notes, and snippets.

@christianromney
Created April 23, 2009 21:53
Show Gist options
  • Save christianromney/100788 to your computer and use it in GitHub Desktop.
Save christianromney/100788 to your computer and use it in GitHub Desktop.
class Report
attr_reader :input, :output
def initialize(input, output)
@input = input
@output = output
end
def publish(server)
@output.puts(@input.reverse) # or something more useful with input
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment