class Hash

def extractable_options?

the Array when it is the last element of the Array.
is extractable, Array#extract_options! pops it from
true to declare themselves as extractable. If a Hash
Subclasses of Hash may implement this method and return
By default, only instances of Hash itself are extractable.
def extractable_options?
  instance_of?(Hash)
end