Class: OpenXml::Docx::Properties::IntegerProperty
- Inherits:
-
ValueProperty
- Object
- BaseProperty
- ValueProperty
- OpenXml::Docx::Properties::IntegerProperty
- Defined in:
- lib/openxml/docx/properties/integer_property.rb
Direct Known Subclasses
AbstractNumberingId, CharacterSpacing, DivId, GridAfter, GridBefore, LevelRestart, Position, PositiveIntegerProperty, Start, StartOverride, UiPriority
Instance Attribute Summary
Attributes inherited from ValueProperty
Attributes inherited from BaseProperty
Instance Method Summary collapse
Methods inherited from ValueProperty
#initialize, #render?, #to_xml
Methods inherited from BaseProperty
#default_name, #default_namespace, #default_tag, #initialize, name, #name, namespace, #namespace, #render?, tag, #tag, tag_is_one_of
Constructor Details
This class inherits a constructor from OpenXml::Docx::Properties::ValueProperty
Instance Method Details
#invalid_message ⇒ Object
10 11 12 |
# File 'lib/openxml/docx/properties/integer_property.rb', line 10 def "Invalid #{name}: must be an integer" end |
#valid? ⇒ Boolean
6 7 8 |
# File 'lib/openxml/docx/properties/integer_property.rb', line 6 def valid? value.is_a? Integer end |