Created
March 21, 2013 01:07
-
-
Save anonymous/5209919 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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