tw-oocamp-201512 / the-code-of-you

使用你最喜欢的语言写一段代码来介绍你自己,提交在Issues里
1 stars 1 forks source link

Libin's introduction #8

Open ucooling opened 8 years ago

ucooling commented 8 years ago
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
ucooling commented 8 years ago

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.