Class: Array
- Defined in:
- lib/stub_requests/core_ext/object/blank.rb,
lib/stub_requests/core_ext/array/extract_options.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#extract_options ⇒ Object
:nodoc:.
-
#extract_options! ⇒ Object
:nodoc:.
Instance Method Details
#extract_options ⇒ Object
:nodoc:
23 24 25 26 27 28 29 |
# File 'lib/stub_requests/core_ext/array/extract_options.rb', line 23 def if last.is_a?(Hash) && last. last else {} end end |
#extract_options! ⇒ Object
:nodoc:
14 15 16 17 18 19 20 |
# File 'lib/stub_requests/core_ext/array/extract_options.rb', line 14 def if last.is_a?(Hash) && last. pop else {} end end |