Class: Mobility::Configuration::Options

Inherits:
Hash
  • Object
show all
Defined in:
lib/mobility/configuration.rb

Instance Method Summary collapse

Instance Method Details

#[]=(key, _) ⇒ Object


130
131
132
133
134
135
# File 'lib/mobility/configuration.rb', line 130

def []=(key, _)
  if RESERVED_OPTION_KEYS.include?(key)
    raise Configuration::ReservedOptionKey, "Default options may not contain the following reserved key: #{key}"
  end
  super
end