Skip to content

Instantly share code, notes, and snippets.

@caike
Created April 21, 2010 20:18
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 caike/374354 to your computer and use it in GitHub Desktop.
Save caike/374354 to your computer and use it in GitHub Desktop.
## shared connections from profile search result
profile.relation_to_viewer["relation-to-viewer"].
gsub(/\n/,'').
scan(/(\s[a-zA-Z]+\s+[a-zA-Z]+)/).each do |n|
p n.to_s.strip.gsub(/\s+/, ' ')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment