Sha256: 1c20230db625f44783c92d693e271c39cebdd86a84d7ed82497ce860ab393adf

Contents?: true

Size: 344 Bytes

Versions: 3

Compression:

Stored size: 344 Bytes

Contents

module OpenXml
  module DrawingML
    module Properties
      class PercentageProperty < ValueProperty

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

        def invalid_message
          "#{value.inspect} is an invalid value for #{name}; it must be a percentage"
        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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