Class: OpenXml::DrawingML::Properties::SpacingPoints

Inherits:
IntegerProperty
  • Object
show all
Defined in:
lib/openxml/drawingml/properties/spacing_points.rb

Instance Method Summary collapse

Instance Method Details

#invalid_messageObject



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

def invalid_message
  "Invalid spacing_points: must be a point value between 0 and 158,400"
end

#valid?Boolean

Returns:

  • (Boolean)


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

def valid?
  # Value range taken from OpenXml Spec Part 1, section 20.1.10.77
  super && (0..158_400).cover?(value)
end