Sha256: 5fd576e02ba2bf229b7cb250dde535e45c427e09db74d21e060311a74e053790

Contents?: true

Size: 422 Bytes

Versions: 4

Compression:

Stored size: 422 Bytes

Contents

module OpenXml
  module DrawingML
    module Properties
      class ColorXformTint < ValueProperty
        namespace :a
        tag :tint

        def valid?
          value =~ OpenXml::DrawingML::ST_PositiveFixedPercentage
        end

        def invalid_message
          "#{value.inspect} is an invalid value for #{name}; it must be a positive percentage no greater than 100."
        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/color_xform_tint.rb
openxml-drawingml-0.3.0 lib/openxml/drawingml/properties/color_xform_tint.rb
openxml-drawingml-0.2.1 lib/openxml/drawingml/properties/color_xform_tint.rb
openxml-drawingml-0.2.0 lib/openxml/drawingml/properties/color_xform_tint.rb