Module: Enumerable

Defined in:
lib/maveric/extensions.rb

Instance Method Summary collapse

Instance Method Details

#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