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
25d5ac7ffd
ruby-uebungen
/
Assignment_021
/
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 }