module EscapeJavaProperties::Parsing::Normalizer

Module to normalize the content of a properties file

@example Normalizes:

# Comment 1
! Comment 2
item0
item1 = item1 
item2 : item2 
item3=line 1 \
      line 2

@example Into:

item0
item1=item1 
item2=item2 
item3=line 1 line 2

Constants

RULES

Collection of ordered rules

Public Class Methods

normalize!(text) click to toggle source

Normalizes the content of a properties file content by applying the RULES @param text [String] @return [String]

# File lib/escape_java_properties/parsing/normalizer.rb, line 68
def self.normalize!(text)
  RULES.each do |rule|
    rule.apply!(text)
  end
  text
end