Class: Configuration::Delimiters
- Inherits:
-
Object
- Object
- Configuration::Delimiters
- Includes:
- Ruby::Enum
- Defined in:
- lib/mathematical/configuration.rb
Class Method Summary collapse
Class Method Details
.option_exists?(option) ⇒ Boolean
14 15 16 17 18 |
# File 'lib/mathematical/configuration.rb', line 14 def self.option_exists?(option) unless Delimiters.keys.include?(option) fail TypeError, "delimiter type does not exist: #{option}" end end |