Is there a more direct way to accomplish this?
In particular, is there a way we can avoid the block argument (u)?
u
users.select { |u| u.admin? }
Sure! Symbol-to-proc will do the trick:
users.select(&:admin?)
Note that we couldn't use this if admin? took an argument, which is kind of a bummer.
admin?