method

remove_frozen_string_literal

Importance_0
v2_6_3 - Show latest stable - 0 notes - Class: Encoding
remove_frozen_string_literal(string) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rdoc/encoding.rb, line 88
  def self.remove_frozen_string_literal string
    string =~ /\A(?:#!.*\n)?(.*\n)/
    first_line = $1

    if first_line =~ /\A# +frozen[-_]string[-_]literal[=:].+$/
      string = string.sub first_line, ''
    end

    string
  end
Register or log in to add new notes.