Skip to content

Instantly share code, notes, and snippets.

Created March 21, 2013 01:07
Show Gist options
  • Save anonymous/5209919 to your computer and use it in GitHub Desktop.
Save anonymous/5209919 to your computer and use it in GitHub Desktop.
class Company
attr_accessor :name
def initialize(name)
@name = name.upcase
@employee = []
end
end
print "What is the Company name"
new_comp = gets.chomp
company = Company.new(new_comp)
puts "The company name is #{company.name}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment