exercice terminé

This commit is contained in:
julien committed 2026-10-14 11:08:11 +02:00
1 parent d79c543c72
commit 8bc08ec525
2 files changed
+43 -2

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env ruby
class Test
def initialize(fruit)
@fruit = fruit
end
def hello
name = "Bob"
puts "Hello #{name} !"
end
def eat
puts "#{@fruit}"
end
end