Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/gadget.rb
Overview
monkey patch Array to gain .extract_options!
Instance Method Summary collapse
Instance Method Details
#extract_options! ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/gadget.rb', line 17 def if last.is_a?(Hash) && last. pop else {} end end |