class Whoami
attr_accessor :name, :work_years, :tw_years, :team, :skill_lists
def initialize(name, work_years, tw_years, team, skill_lists)
@name = name
@work_years = work_years
@tw_years = tw_years
@team = team
@skill_lists = skill_lists
end
def introduce
puts "My name is #{@name},\nI have #{@work_years} years work experience,\n#{@tw_years} i join the TW,\nNow my team is #{team},\nI like #{skill_lists},\nThanks everyone."
end
end
Whoami.new("MaLibin", "two and half", "one year ago", "Media of REA", "Ruby and javaScript").introduce
My name is MaLibin,
I have two and half years work experience,
one year ago i join the TW,
Now my team is Media of REA,
I like Ruby and javaScript,
Thanks everyone.