Exception: QuickStore::NotAllowedKeyError
- Defined in:
- lib/quick_store/exceptions.rb
Instance Method Summary collapse
-
#initialize(key, forbidden_names) ⇒ NotAllowedKeyError
constructor
A new instance of NotAllowedKeyError.
Constructor Details
#initialize(key, forbidden_names) ⇒ NotAllowedKeyError
Returns a new instance of NotAllowedKeyError.
11 12 13 14 15 16 17 |
# File 'lib/quick_store/exceptions.rb', line 11 def initialize(key, forbidden_names) super( "There is a \"#{key.to_s.chop}\" instance method already " \ 'defined. This will lead to problems while getting values ' \ "from the store. Please use another key than #{forbidden_names}." ) end |