Sha256: 29f9a0d1f674b2638dcec0fa64eb1ceafbb02392157eb778f5b01238ce1f5be1

Contents?: true

Size: 424 Bytes

Versions: 4

Compression:

Stored size: 424 Bytes

Contents

module OpenXml
  module DrawingML
    module Properties
      class ColorXformAlpha < ValueProperty
        namespace :a
        tag :alpha

        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_alpha.rb
openxml-drawingml-0.3.0 lib/openxml/drawingml/properties/color_xform_alpha.rb
openxml-drawingml-0.2.1 lib/openxml/drawingml/properties/color_xform_alpha.rb
openxml-drawingml-0.2.0 lib/openxml/drawingml/properties/color_xform_alpha.rb