Module: Skunk::FormatValidator
- Defined in:
- lib/skunk/config.rb
Overview
Utility module for format validation
Constant Summary collapse
- SUPPORTED_FORMATS =
Supported output formats
i[json html console].freeze
Class Method Summary collapse
-
.supported_format?(format) ⇒ Boolean
Check if a format is supported.
-
.supported_formats ⇒ Array<Symbol>
Get all supported formats.
Class Method Details
.supported_format?(format) ⇒ Boolean
Check if a format is supported
12 13 14 |
# File 'lib/skunk/config.rb', line 12 def self.supported_format?(format) SUPPORTED_FORMATS.include?(format) end |
.supported_formats ⇒ Array<Symbol>
Get all supported formats
18 19 20 |
# File 'lib/skunk/config.rb', line 18 def self.supported_formats SUPPORTED_FORMATS.dup end |