-
-
Save anildigital/4f6eeefd5bd0c0edf3fa51832251665f 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 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