Skip to content

Instantly share code, notes, and snippets.

@Sedward
Created November 2, 2011 16:40
Show Gist options
  • Save Sedward/1334143 to your computer and use it in GitHub Desktop.
Save Sedward/1334143 to your computer and use it in GitHub Desktop.
CoTweet Refactor Challenge One
class TestOne
def initialize(logger)
@logger = logger
end
def load_doc
begin
@logger.debug('Starting Document load')
@doc = Document.load('resume.txt')
@logger.debug('Completed Document load')
rescue
@logger.error('Load failed!!')
raise
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment