Class: Configuration::Delimiters

Inherits:
Object
  • Object
show all
Includes:
Ruby::Enum
Defined in:
lib/mathematical/configuration.rb

Class Method Summary collapse

Class Method Details

.option_exists?(option) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
20
21
# File 'lib/mathematical/configuration.rb', line 17

def option_exists?(option)
  unless Delimiters.key?(option)
    raise(TypeError, "delimiter type does not exist: #{option}")
  end
end