Sha256: 0226410f91a331b667e1a8236be3e476691972b39e472443ddd60a46d9c68d03
Contents?: true
Size: 515 Bytes
Versions: 2
Compression:
Stored size: 515 Bytes
Contents
module OoxmlParser class Configuration attr_accessor :units def initialize @units = :centimeters end # @return [Float] by which divide units values def units_delimiter return (20 * 635.0) if @units == :points return (566.929 * 635.0) if @units == :centimeters return 1 if @units == :dxa return 1440 if @units == :inches return (1.0 / 635.0) if @units == :emu warn "Cannot recognize #{@units} unit. Will use dxa by default" 1 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ooxml_parser-0.1.2 | lib/ooxml_parser/configuration.rb |
ooxml_parser-0.1.1 | lib/ooxml_parser/configuration.rb |