Created
September 18, 2018 20:39
-
-
Save OtavioHenrique/7f4e9d78e0bac5a234900b7acb83081f 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 People | |
def initialize(name:, age:, weight:) | |
@name = name | |
@age = age | |
@weight = weight | |
end | |
end | |
bruna = People.new(name: "Bruna", age: "24", weight: "54") | |
puts bruna.name | |
puts bruna.age | |
otavio = People.new(name:"Otavio", age:"18", weight: "40") | |
puts otavio.weight |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment