Sha256: 6cdbb4eec69e36bdc5f221228135c8676f2599b3536fb1661f09fdd28cb006d1
Contents?: true
Size: 769 Bytes
Versions: 3
Compression:
Stored size: 769 Bytes
Contents
module Xmlss; end module Xmlss::Element class Column def self.writer; :column; end attr_accessor :style_id, :width, :auto_fit_width, :hidden def initialize(attrs={}) self.style_id = attrs[:style_id] self.width = attrs[:width] self.auto_fit_width = attrs[:auto_fit_width] || false self.hidden = attrs[:hidden] || false end def width=(value) if value && !value.kind_of?(::Numeric) raise ArgumentError, "must specify width as a Numeric" end @width = value && value < 0 ? nil : value end def autofit; self.auto_fit_width; end def autofit=(value); self.auto_fit_width = value; end def autofit?; !!self.autofit; end def hidden?; !!self.hidden; end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xmlss-1.0.1 | lib/xmlss/element/column.rb |
xmlss-1.0.0 | lib/xmlss/element/column.rb |
xmlss-1.0.0.rc.4 | lib/xmlss/element/column.rb |