Created
March 15, 2018 10:28
-
-
Save parhs/222e84ee8a77417f915dfc6efd3e73c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def config_changed?(current, composed) | |
composed_txt = composed.split("\n") | |
current.split("\n").each_with_index do |line, index| | |
equal = (line.strip == composed_txt[index].strip) | |
return true if equal == false | |
end | |
false | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment