Sha256: 25ac18d4cb96ca2650ab9e5e9048250d62b078853d369062ce8abbee39177f74

Contents?: true

Size: 318 Bytes

Versions: 17

Compression:

Stored size: 318 Bytes

Contents

module OpenXml
  module Docx
    module Properties
      class ParentStyle < ValueProperty
        tag :basedOn

        def valid?
          value.is_a?(String) && value.length > 0
        end

        def invalid_message
          "#{name} must be a string that is not empty"
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
openxml-docx-0.11.5 lib/openxml/docx/properties/parent_style.rb
openxml-docx-0.11.4 lib/openxml/docx/properties/parent_style.rb
openxml-docx-0.11.3 lib/openxml/docx/properties/parent_style.rb
openxml-docx-0.11.2 lib/openxml/docx/properties/parent_style.rb
openxml-docx-0.11.1 lib/openxml/docx/properties/parent_style.rb
openxml-docx-0.11.0 lib/openxml/docx/properties/parent_style.rb
openxml-docx-0.11.0.rc lib/openxml/docx/properties/parent_style.rb
openxml-docx-0.10.6 lib/openxml/docx/properties/parent_style.rb
openxml-docx-0.10.5 lib/openxml/docx/properties/parent_style.rb
openxml-docx-0.10.4 lib/openxml/docx/properties/parent_style.rb
openxml-docx-0.10.3 lib/openxml/docx/properties/parent_style.rb
openxml-docx-0.10.2 lib/openxml/docx/properties/parent_style.rb
openxml-docx-0.10.1 lib/openxml/docx/properties/parent_style.rb
openxml-docx-0.10.0 lib/openxml/docx/properties/parent_style.rb
openxml-docx-0.9.0 lib/openxml/docx/properties/parent_style.rb
openxml-docx-0.8.0 lib/openxml/docx/properties/parent_style.rb
openxml-docx-0.8.0.beta1 lib/openxml/docx/properties/parent_style.rb