Add snippet for # frozen_string_literal: true

See https://wyeworks.com/blog/2015/12/1/immutable-strings-in-ruby-2-dot-3 for a detailed description of the frozen_string_literal comment.
This commit is contained in:
Harald Wartig 2016-05-16 09:55:26 +02:00
parent a9b920b478
commit efab1575ed

View File

@ -1,5 +1,7 @@
snippet enc snippet enc
# encoding: utf-8 # encoding: utf-8
snippet frozen
# frozen_string_literal: true
snippet #! snippet #!
#!/usr/bin/env ruby #!/usr/bin/env ruby
# New Block # New Block