Flowdock
method

assert_valid_keys

Importance_0
v1.0.0 - Show latest stable - 0 notes - Class: ActiveSupport::CoreExtensions::Hash::Keys
assert_valid_keys(*valid_keys) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/core_ext/hash/keys.rb, line 46
        def assert_valid_keys(*valid_keys)
          unknown_keys = keys - [valid_keys].flatten
          raise(ArgumentError, "Unknown key(s): #{unknown_keys.join(", ")}") unless unknown_keys.empty?
        end
Register or log in to add new notes.