Class: Omml::Models::EnumString
- Inherits:
-
Lutaml::Model::Type::String
- Object
- Lutaml::Model::Type::String
- Omml::Models::EnumString
- Defined in:
- lib/omml/models/simple_types/enum_string.rb
Direct Known Subclasses
STBorder, STBrClear, STBrType, STBreakBin, STBreakBinSub, STCalendarType, STCombineBrackets, STDisplacedByCustomXml, STEdGrp, STEm, STFFTextType, STFType, STFldCharType, STHighlightColor, STHint, STInfoTextType, STJc, STLimLoc, STLock, STOnOff, STPTabAlignment, STPTabLeader, STPTabRelativeTo, STProofErr, STRubyAlign, STScript, STSdtDateMappingType, STShd, STShp, STStyle, STTextEffect, STTheme, STThemeColor, STTopBot, STUnderline, STVerticalAlignRun, STXAlign, STYAlign
Class Method Summary collapse
Class Method Details
.cast(value, options = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/omml/models/simple_types/enum_string.rb', line 6 def self.cast(value, = {}) return if value.nil? values = defined_values return super unless values = () do values.map do |entry| super(entry) end end super(value, ) end |