Sha256: 87241281895091bd5d8616efb4de2c798cf56652726f31f48a534f6457673a1c

Contents?: true

Size: 471 Bytes

Versions: 4

Compression:

Stored size: 471 Bytes

Contents

module OpenXml
  module DrawingML
    module Properties
      class BulletSizePercent < ValueProperty
        namespace :a
        tag :buSzPct

        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

        def invalid_message
          "Invalid bullet_size_percent: value must be a percentage between 25% and 400%"
        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_percent.rb
openxml-drawingml-0.3.0 lib/openxml/drawingml/properties/bullet_size_percent.rb
openxml-drawingml-0.2.1 lib/openxml/drawingml/properties/bullet_size_percent.rb
openxml-drawingml-0.2.0 lib/openxml/drawingml/properties/bullet_size_percent.rb