Method: Enumerable#eject
- Defined in:
- lib/maveric/extensions.rb
#eject(&b) ⇒ Object
Used to return the first value for which the black evalutes as true. Think .map(&b).compact.first
35 |
# File 'lib/maveric/extensions.rb', line 35 def eject &b; find{|e| r=b[e] and break r }; end |