Class: OpenXml::DrawingML::Properties::BulletSizePercent

Inherits:
ValueProperty
  • Object
show all
Defined in:
lib/openxml/drawingml/properties/bullet_size_percent.rb

Instance Method Summary collapse

Instance Method Details

#invalid_messageObject



13
14
15
# File 'lib/openxml/drawingml/properties/bullet_size_percent.rb', line 13

def invalid_message
  "Invalid bullet_size_percent: value must be a percentage between 25% and 400%"
end

#valid?Boolean

Returns:

  • (Boolean)


8
9
10
11
# File 'lib/openxml/drawingml/properties/bullet_size_percent.rb', line 8

def valid?
  # ST_TextBulletSizePercent - Part 1, section 20.1.10.61
  /0*((2[5-9])|([3-9][0-9])|([1-3][0-9][0-9])|400)%/ =~ value
end