Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lparry
· 9y ago · 0 comments
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)
Comments
[–]
brobinson
9y ago
It is! I'd forgotten about Kernel.method. Thanks!