KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm dealing with a bunch of arrays made of strings and many a times I've written .delete_if { |str| str.empty? } Now, I know I can add this method to the array class myself but I'm hoping there's a built in way to do this without having non-standard methods added to base classes. As much fun as adding methods to base classes is, it's not something I wanna do for maintainability reasons. Is there a built in method to handle this?
Tags (comma-separated)
Save Edits
Cancel