Created
May 16, 2012 22:23
-
-
Save carlcrott/2714505 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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