Class: Omml::Models::EnumString
- Inherits:
-
Lutaml::Model::Type::String
- Object
- Lutaml::Model::Type::String
- Omml::Models::EnumString
show all
- 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
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/omml/models/simple_types/enum_string.rb', line 11
def self.cast(value, options = {})
return if value.nil?
values = defined_values
return super unless values
cast_options = options_with_values(options) do
values.map do |entry|
super(entry)
end
end
super(value, cast_options)
end
|
.inherited(subclass) ⇒ Object