class RailsBand::Configuration::Consumers
Consumers
is a wrapper of ActiveSupport::HashWithIndifferentAccess, which validates the value on []=
.
Public Instance Methods
[]=(key, value)
click to toggle source
Calls superclass method
# File lib/rails_band/configuration.rb, line 8 def []=(key, value) unless value.respond_to?(:call) raise ArgumentError, "The value for `#{key.inspect}` must have #call: the passed one is `#{value.inspect}`" end super(key, value) end