Skip to content

Instantly share code, notes, and snippets.

@carlcrott
Created May 16, 2012 22:23
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 carlcrott/2714505 to your computer and use it in GitHub Desktop.
Save carlcrott/2714505 to your computer and use it in GitHub Desktop.
def foo(s)
p s # => "Creation of a bacterial cell controlled by a chemically synthesized genome"
bar(s)
p s # => "Creation+of+a+bacterial+cell+controlled+by+a+chemically+synthesized+genome"
end
def bar(string)
search_string = string.gsub!(' ','+')
return ""
end
foo('Creation of a bacterial cell controlled by a chemically synthesized genome')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment