Sha256: 1aac35d176f3fdc95c7c0d48158b06cc7fb98f7c1df2408ed914d1c893c84eff

Contents?: true

Size: 369 Bytes

Versions: 4

Compression:

Stored size: 369 Bytes

Contents

module OpenXml
  module DrawingML
    module Properties
      class PositivePercentageProperty < ValueProperty

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

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