Why is “❨╯°□°❩╯︵┻━┻” with such an encoding used for a method name?

前端 未结 3 649
抹茶落季
抹茶落季 2021-02-05 04:11

I came across following method in sidekiq gem. Its just invoked from test_sidekiq.rb.

def self.❨╯°□°❩╯︵┻━┻
  puts \"Calm down, bro\"
end

This i

3条回答
  •  滥情空心
    2021-02-05 04:25

    Looking at the commit that introduced it seems to be some funny sort way to make sure the file is encoded in UTF-8

    https://github.com/mperham/sidekiq/commit/c1127165f8157807e7855c60f9849d20fb9fec24

提交回复
热议问题