Created
July 31, 2020 10:01
-
-
Save rob-murray/20d4ecc2183d98182cc369b5e97b8d23 to your computer and use it in GitHub Desktop.
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
# frozen_string_literal: true | |
# rubocop:disable | |
def puts_here(symbol: "*") | |
puts symbol + caller(1..1).first + symbol * 50 | |
if block_given? | |
yield | |
puts symbol + caller(1..1).first + symbol * 50 | |
end | |
end | |
# rubocop:enable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment