Sha256: 32aef5f88041de27c36de73156f02f4a3ee57a54ba96f98b905186a133f63c27

Contents?: true

Size: 475 Bytes

Versions: 4

Compression:

Stored size: 475 Bytes

Contents

module OpenXml
  module DrawingML
    module Properties
      class BulletSizePoints < ValueProperty
        namespace :a
        tag :buSzPts

        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

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

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openxml-drawingml-0.3.1 lib/openxml/drawingml/properties/bullet_size_points.rb
openxml-drawingml-0.3.0 lib/openxml/drawingml/properties/bullet_size_points.rb
openxml-drawingml-0.2.1 lib/openxml/drawingml/properties/bullet_size_points.rb
openxml-drawingml-0.2.0 lib/openxml/drawingml/properties/bullet_size_points.rb