instance method
extractable_options?
Ruby on Rails edge
Since v3.0.20Signature
extractable_options?()
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.
: () -> bool
Source
# File activesupport/lib/active_support/core_ext/array/extract_options.rb, line 10
def extractable_options?
instance_of?(Hash)
end
Defined in activesupport/lib/active_support/core_ext/array/extract_options.rb line 10
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Hash