Sha256: cb14db38541ff3661b3470ed0af3643d53f7930471a570b4581f0c3421352a1e

Contents?: true

Size: 418 Bytes

Versions: 4

Compression:

Stored size: 418 Bytes

Contents

module OpenXml
  module DrawingML
    module Properties
      class ColorXformAlphaOffset < ValueProperty
        namespace :a
        tag :alphaOff

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

        def invalid_message
          "#{value.inspect} is an invalid value for #{name}; it must be a percentage between -100% and 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_offset.rb
openxml-drawingml-0.3.0 lib/openxml/drawingml/properties/color_xform_alpha_offset.rb
openxml-drawingml-0.2.1 lib/openxml/drawingml/properties/color_xform_alpha_offset.rb
openxml-drawingml-0.2.0 lib/openxml/drawingml/properties/color_xform_alpha_offset.rb