Sha256: 668d7b94855d168322ceef11afc35474ca0c47b1781cc4589b2bc316471d38b0

Contents?: true

Size: 369 Bytes

Versions: 2

Compression:

Stored size: 369 Bytes

Contents

module Rocx
  module Properties
    class DivId < BaseProperty

      def valid?
        value.is_a?(Integer)
      end

      def invalid_message
        "Invalid value for #{name}; acceptable values are integers"
      end

      def tag
        :divId
      end

      def to_xml(xml)
        xml["w"].public_send(tag, "w:val" => value)
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rocx-0.5.7 lib/rocx/properties/div_id.rb
rocx-0.5.6 lib/rocx/properties/div_id.rb