Class: DeepL::Constants::BaseConstant
- Inherits:
-
Object
- Object
- DeepL::Constants::BaseConstant
- Defined in:
- lib/deepl/constants/base_constant.rb
Direct Known Subclasses
Formality, ModelType, SplitSentences, TagHandling, Tone, WritingStyle
Class Method Summary collapse
Class Method Details
.options ⇒ Object
9 10 11 |
# File 'lib/deepl/constants/base_constant.rb', line 9 def self. constants.map { |const| const_get(const) } end |
.valid?(value) ⇒ Boolean
13 14 15 |
# File 'lib/deepl/constants/base_constant.rb', line 13 def self.valid?(value) .include?(value) end |