Skip to content

Instantly share code, notes, and snippets.

@anildigital
Created January 11, 2019 04:24
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 anildigital/4f6eeefd5bd0c0edf3fa51832251665f to your computer and use it in GitHub Desktop.
Save anildigital/4f6eeefd5bd0c0edf3fa51832251665f to your computer and use it in GitHub Desktop.
def split_words_by_dash
# Split by normal dash (windows)
if @window.include?(NORMAL_DASH)
@window.split(NORMAL_DASH)
# Split by special dash (mac)
elsif @window.include?(SPECIAL_DASH)
@window.split(SPECIAL_DASH)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment