Last active
September 28, 2021 04:12
-
-
Save diegomelo182/eb9e5ed2b75240df5f580fe41d01d40a to your computer and use it in GitHub Desktop.
attr_accessor car_class.rb
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 Car | |
attr_accessor :name | |
def initialize(name) | |
@name = name | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment