Skip to content

Instantly share code, notes, and snippets.

@fronx
Created September 23, 2009 12:35
Show Gist options
  • Save fronx/191949 to your computer and use it in GitHub Desktop.
Save fronx/191949 to your computer and use it in GitHub Desktop.
a simple logger
class << (Logger = [])
def to_s
join("\n")
end
def <=(s)
self << line << s << line
end
def line(n = 50)
'-' * n
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment