Skip to content

Instantly share code, notes, and snippets.

@parhs
Created March 15, 2018 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parhs/222e84ee8a77417f915dfc6efd3e73c2 to your computer and use it in GitHub Desktop.
Save parhs/222e84ee8a77417f915dfc6efd3e73c2 to your computer and use it in GitHub Desktop.
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