Class: OpenXml::DrawingML::Properties::FontProperty
- Inherits:
-
Properties::ComplexProperty
- Object
- Properties::ComplexProperty
- OpenXml::DrawingML::Properties::FontProperty
- Defined in:
- lib/openxml/drawingml/properties/font_property.rb
Direct Known Subclasses
BulletFont, ComplexScriptFont, EastAsianFont, LatinFont, SymbolFont
Instance Method Summary collapse
-
#initialize(value) ⇒ FontProperty
constructor
A new instance of FontProperty.
- #invalid_message ⇒ Object
Constructor Details
#initialize(value) ⇒ FontProperty
Returns a new instance of FontProperty.
8 9 10 11 12 |
# File 'lib/openxml/drawingml/properties/font_property.rb', line 8 def initialize(value) super() raise ArgumentError, unless value.is_a?(String) self.typeface = value end |
Instance Method Details
#invalid_message ⇒ Object
14 15 16 |
# File 'lib/openxml/drawingml/properties/font_property.rb', line 14 def "Invalid #{name}: value must be a string indicating the typeface" end |