Skip to content

Instantly share code, notes, and snippets.

@krokrob
Created January 13, 2016 16:42
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 krokrob/f9d6072bd2ebec1c3d24 to your computer and use it in GitHub Desktop.
Save krokrob/f9d6072bd2ebec1c3d24 to your computer and use it in GitHub Desktop.
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