Skip to content

Instantly share code, notes, and snippets.

@rob-murray
Created July 31, 2020 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rob-murray/20d4ecc2183d98182cc369b5e97b8d23 to your computer and use it in GitHub Desktop.
Save rob-murray/20d4ecc2183d98182cc369b5e97b8d23 to your computer and use it in GitHub Desktop.
# 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