Created
January 13, 2016 16:42
-
-
Save krokrob/f9d6072bd2ebec1c3d24 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
require "pry-byebug" | |
def full_name(first_name, last_name) | |
cap_first_name = first_name.strip.capitalize | |
binding.pry | |
cap_last_name = last_name.capitalize | |
return "#{cap_first_name} #{cap_last_name}" | |
end | |
puts full_name(" pablo", "picasso") | |
# => "Pablo Picasso" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment