add some exercises

This commit is contained in:
julien committed 2026-10-13 20:33:50 +02:00
1 parent f6abf65e91
commit d79c543c72
13 files changed
+232

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env ruby
class Hello
def hello(name)
puts "Hello #{name}!"
end
def hello_everybody(names)
names.each do |name|
hello(name)
end
end
end
greeter = Hello.new
greeter.hello("Biblo")
puts
greeter.hello_everybody(["Pipin", "Merry", "Sam"])