Hacker News new | ask | show | jobs
by lparry 3388 days ago
Even if it's not an instance method you can write the first as

  validated_items = items.select(&method(:is_validated?))
(Typed on my phone but I'm pretty sure that's the right syntax)
1 comments

It is! I'd forgotten about Kernel.method. Thanks!