class AwesomeProfile
def initialize(profile:)
@profile = profile
end
def to_s
["",
"######################################",
" Here we have an awesome profile! ",
"######################################",
"",
profile.map { |title, description| "#{title}: #{description}" },
"",
""].join("\n")
end
attr_accessor :profile
end
lmbautista_profile = {
"🤓 Full name" => "Luis Miguel Bautista",
"🤖 Skills" => "Software engineer and technology enthusiast that enjoy learning, teaching and coding",
"🌴 Hobbies" => "Coding, running, my family ⊂ 🦊, plants🪴 and food",
"💻 Current role" => "Ruby backend engineer",
"🚀 Current position" => "Currently working as Backend developer in Jobandtalent having fun with awesome challenges"
}
puts AwesomeProfile.new(profile: lmbautista_profile).to_s
Find out more about me & feel free to connect with me here: