ruby-uebungen/Assignment_040/solution/readme.md

14 lines
134 B
Markdown

# Lösung: Singleton Methoden
```ruby
s1 = "Hallo"
s2 = "Welt"
def s2.to_leet
self.tr('aeiou', '43107')
end
puts s2.to_leet
```