From efab1575ed1b1a08c60423ae7b3759126c97a5d5 Mon Sep 17 00:00:00 2001 From: Harald Wartig Date: Mon, 16 May 2016 09:55:26 +0200 Subject: [PATCH] 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. --- snippets/ruby.snippets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snippets/ruby.snippets b/snippets/ruby.snippets index a6340e4..772f464 100644 --- a/snippets/ruby.snippets +++ b/snippets/ruby.snippets @@ -1,5 +1,7 @@ snippet enc # encoding: utf-8 +snippet frozen + # frozen_string_literal: true snippet #! #!/usr/bin/env ruby # New Block