Web Reference: 7,765 views • Apr 26, 2014 • Ruby Tutorial for Beginners, Ruby programming tutorials Dec 25, 2025 · In this guide, we’ll explore how to create two custom array methods: `keep` and `discard`. `keep` will return elements for which a block evaluates to `true` (similar to `Array#select`), and `discard` will return elements for which the block evaluates to `false` (similar to `Array#reject`). So the first example is the best if you want to pass the block or the absence of a block (&nil passes no block at all). The second example (as I changed it) is the best if missing block is an error.
YouTube Excerpt: Access 7000+ courses for 15 days FREE: https://pluralsight.pxf.io/c/1291657/431340/7490 (&block)
Information Profile Overview
26 Ruby Tutorial Block Passing - Latest Information & Updates 2026 Information & Biography

Details: $68M - $110M
Salary & Income Sources

Career Highlights & Achievements

Assets, Properties & Investments
This section covers known assets, real estate holdings, luxury vehicles, and investment portfolios. Data is compiled from public records, financial disclosures, and verified media reports.
Last Updated: April 4, 2026
Information Outlook & Future Earnings

Disclaimer: Disclaimer: Information provided here is based on publicly available data, media reports, and online sources. Actual details may vary.



![Famous [2024] Ruby Programming Crash Course - Complete tutorial under 2 hours Profile](https://i.ytimg.com/vi/w9yNsTAp-Mg/mqdefault.jpg)




