Skip to content

Instantly share code, notes, and snippets.

Created March 21, 2013 00:32
Show Gist options
  • Save anonymous/5209780 to your computer and use it in GitHub Desktop.
Save anonymous/5209780 to your computer and use it in GitHub Desktop.
class Company
attr_reader :title
def initialize(title)
@title = title.capitalize
@users = []
end
def add_company_name(new_comp)
@title = new_comp
end
def add_user(a_user)
@players.push(a_user)
end
end
print "Whats the company name"
new_comp = gets.chomp
puts " The company name is #{@title}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment