Created
March 20, 2020 12:16
-
-
Save ellcs/4d07d4b1c8ee59c9a5551c95c9f760bd to your computer and use it in GitHub Desktop.
ruby log with filename and line
This file contains 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
def log(str); c = caller.first.split(":")[0..1].join(":"); puts "#{c} \"#{str}\""; emd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment