Class: OpenXml::DrawingML::Properties::BulletSizePoints

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

Instance Method Summary collapse

Instance Method Details

#invalid_messageObject



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

def invalid_message
  "Invalid bullet_size_points: value must be a point value between 100 and 400,000"
end

#valid?Boolean

Returns:

  • (Boolean)


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

def valid?
  # Value range taken from OpenXml Spec Part 1, section 20.1.10.67
  value.is_a?(Integer) && (100..400_000).cover?(value)
end