Class: Hash

Inherits:
Object show all
Defined in:
lib/ext/vendored_activesupport.rb

Instance Method Summary collapse

Instance Method Details

#extractable_options?Boolean

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

Returns:

  • (Boolean)


34
35
36
# File 'lib/ext/vendored_activesupport.rb', line 34

def extractable_options?
  instance_of?(Hash)
end