method
garbage?
v8.0.0 -
Show latest stable
- Class:
ActiveSupport::XMLConverter
garbage?(value)private
No documentation available.
# File activesupport/lib/active_support/core_ext/hash/conversions.rb, line 241
def garbage?(value)
# If the type is the only element which makes it then
# this still makes the value nil, except if type is
# an XML node(where type['value'] is a Hash)
value["type"] && !value["type"].is_a?(::Hash) && value.size == 1
end