Skip to content

Instantly share code, notes, and snippets.

@ascendbruce
Created May 7, 2014 06:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ascendbruce/8f8c078d8d9b3ccd828b to your computer and use it in GitHub Desktop.
Save ascendbruce/8f8c078d8d9b3ccd828b to your computer and use it in GitHub Desktop.
Unicode special space characters as ruby method name
# encoding: utf-8
# inspired by http://jsbin.com/nuhinuda/1/edit
def  
"U+2004 THREE-PER-EM SPACE"
end
def  
"U+2005 FOUR-PER-EM SPACE"
end
def  
"U+2006 SIX-PER-EM SPACE"
end
def  
"U+2008 PUNCTUATION SPACE"
end
def  
"U+2009 THIN SPACE"
end
def  
"U+200A HAIR SPACE"
end
def ᠎
"U+200B ZERO WIDTH SPACE"
end
puts  
puts  
puts  
puts  
puts  
puts  
puts ᠎
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment