0

people of this house are very helpful. please help I can solve this question

Fill in the blanks to create a Dog class with a class variable "legs" and a class method "legs" that returns the value of the class variable. Dog @@legs = 4 def .legs end end puts Dog.legs

21st Jul 2017, 9:28 PM
Ahmad Jafar Muhammad
Ahmad Jafar Muhammad  - avatar
3 Réponses
+ 2
class Dog @@legs = 4 def self.legs @@legs end end puts Dog.legs
24th Sep 2017, 6:50 PM
Oleg Moiseenko
Oleg Moiseenko - avatar
0
"Rearrange" the code to take the content of sample.txt and append it to dest.txt. ruby
18th Apr 2020, 4:20 AM
Bacelyahyaoui
Bacelyahyaoui - avatar
- 1
You need to define methods name and make puts or return statement of legs
25th Jul 2017, 3:32 PM
Muhammed Faik Ekiciler
Muhammed Faik Ekiciler - avatar