Created
September 23, 2009 12:35
-
-
Save fronx/191949 to your computer and use it in GitHub Desktop.
a simple logger
This file contains hidden or 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
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