Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/bork/core/array.rb
Instance Method Summary collapse
Instance Method Details
#extract_options! ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/bork/core/array.rb', line 2 def if last.is_a?(Hash) pop else {} end end |
#find(&block) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/bork/core/array.rb', line 10 def find(&block) if i = find_index(&block) at(i) else false end end |