Quantcast
Channel: Random – Ruby On Rails Blog by Railsware
Viewing all articles
Browse latest Browse all 34

yield-gotcha every Ruby developer should be aware of

$
0
0
Preface Using yield and blocks is what makes Ruby so different from other scripting languages. But in some cases yield can lead to unpredictable behavior and it’s crucial to understand what can go wrong. Let’s consider next code: File.open("/etc/hosts", "r") Continue

Viewing all articles
Browse latest Browse all 34

Trending Articles