Class: CommonMarker::Config
- Inherits:
-
Object
- Object
- CommonMarker::Config
- Includes:
- Ruby::Enum
- Defined in:
- lib/commonmarker/config.rb
Overview
For Ruby::Enum, this must be a class, not a module
Class Method Summary collapse
Class Method Details
.option_exists?(option) ⇒ Boolean
14 15 16 17 18 |
# File 'lib/commonmarker/config.rb', line 14 def self.option_exists?(option) unless Config.keys.include?(option) fail StandardError, "option type does not exist #{option}" end end |