Class: OpenXml::Pptx::Properties::Font
- Inherits:
-
OpenXml::Properties::ComplexProperty
- Object
- OpenXml::Properties::ComplexProperty
- OpenXml::Pptx::Properties::Font
- Defined in:
- lib/openxml/pptx/properties/font.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ Font
constructor
A new instance of Font.
- #invalid_message ⇒ Object
Constructor Details
#initialize(value) ⇒ Font
Returns a new instance of Font.
11 12 13 14 15 |
# File 'lib/openxml/pptx/properties/font.rb', line 11 def initialize(value) super() raise ArgumentError, unless value.is_a?(String) self.typeface = value end |
Instance Method Details
#invalid_message ⇒ Object
17 18 19 |
# File 'lib/openxml/pptx/properties/font.rb', line 17 def "Invalid font: value must be a string indicating the typeface" end |