Class: Slideck::InvalidMetadataKeyError
Overview
Raised when metadata key is invalid
Constant Summary collapse
- MESSAGE =
"unknown '%<keys>s' configuration %<name>s\n" \ "Available keys are: %<meta_keys>s"
Instance Method Summary collapse
-
#initialize(metadata_keys, keys) ⇒ InvalidMetadataKeyError
constructor
Create an InvalidMetadataKeyError instance.
Constructor Details
#initialize(metadata_keys, keys) ⇒ InvalidMetadataKeyError
Create an InvalidMetadataKeyError instance
38 39 40 41 42 43 |
# File 'lib/slideck/errors.rb', line 38 def initialize(, keys) super(format(MESSAGE, keys: keys.join(", "), name: pluralize("key", keys.size), meta_keys: .map(&:inspect).join(", "))) end |