This website requires JavaScript.
Explore
Help
Sign In
smits
/
ruby-uebungen
Watch
1
Star
3
Fork
You've already forked ruby-uebungen
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
fe2c1c6eb6
ruby-uebungen
/
Assignment_019
/
solution
/
readme.md
540 B
Raw
Blame
History
Lösung: Callback mit Block
```ruby def rechner(a, b) ergebnis = yield a, b ergebnis * 2 end
puts rechner(5, 4) { |a, b| a + b } puts rechner(5, 4) { |a, b| a - b }