Class: Preflight::Rules::RootHasKeys
- Inherits:
-
Object
- Object
- Preflight::Rules::RootHasKeys
- Defined in:
- lib/preflight/rules/root_has_keys.rb
Overview
ensure the root dict has the specified keys
Instance Method Summary collapse
-
#initialize(*keys) ⇒ RootHasKeys
constructor
A new instance of RootHasKeys.
- #messages(ohash) ⇒ Object
Constructor Details
#initialize(*keys) ⇒ RootHasKeys
Returns a new instance of RootHasKeys.
9 10 11 |
# File 'lib/preflight/rules/root_has_keys.rb', line 9 def initialize(*keys) @keys = keys.flatten end |