Module: PlainSerializer::Helpers

Defined in:
lib/plain_serializer/helpers.rb

Overview

The module which provides helpers

Class Method Summary collapse

Class Method Details

.extract_options!(array) ⇒ Object



8
9
10
# File 'lib/plain_serializer/helpers.rb', line 8

def extract_options!(array)
  array.last.is_a?(Hash) ? array.pop : {}
end