Skip to content

Instantly share code, notes, and snippets.

@havenwood
Created March 2, 2024 04:09
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 havenwood/d0d4d404145ac79ba44d7c9bb4d8bf2f to your computer and use it in GitHub Desktop.
Save havenwood/d0d4d404145ac79ba44d7c9bb4d8bf2f to your computer and use it in GitHub Desktop.
Fun with Ruby pragma
#/|\ ^._.^ /|\-*-shaREABle-cONStaNt_vaLUe:LITEral;🦇;fRozEN_StRING-Literal:tRUE-*-/|\ ^._.^ /|\#
FROZEN = %w[❄️]
p FROZEN.frozen?
#=> true
p FROZEN.all?(&:frozen?)
#=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment