Class: OpenXml::DrawingML::Properties::PositivePercentageProperty
- Inherits:
-
ValueProperty
- Object
- Properties::ValueProperty
- ValueProperty
- OpenXml::DrawingML::Properties::PositivePercentageProperty
show all
- Defined in:
- lib/openxml/drawingml/properties/positive_percentage_property.rb
Instance Method Summary
collapse
Instance Method Details
#invalid_message ⇒ Object
10
11
12
|
# File 'lib/openxml/drawingml/properties/positive_percentage_property.rb', line 10
def invalid_message
"#{value.inspect} is an invalid value for #{name}; it must be a positive percentage"
end
|
#valid? ⇒ Boolean
6
7
8
|
# File 'lib/openxml/drawingml/properties/positive_percentage_property.rb', line 6
def valid?
value =~ OpenXml::DrawingML::ST_PositivePercentage
end
|