Class: Xmlss::Element::Column
- Inherits:
-
Object
- Object
- Xmlss::Element::Column
- Defined in:
- lib/xmlss/element/column.rb
Instance Attribute Summary collapse
-
#auto_fit_width ⇒ Object
Returns the value of attribute auto_fit_width.
-
#hidden ⇒ Object
Returns the value of attribute hidden.
-
#style_id ⇒ Object
Returns the value of attribute style_id.
-
#width ⇒ Object
Returns the value of attribute width.
Class Method Summary collapse
Instance Method Summary collapse
- #autofit ⇒ Object
- #autofit=(value) ⇒ Object
- #autofit? ⇒ Boolean
- #hidden? ⇒ Boolean
-
#initialize(attrs = {}) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(attrs = {}) ⇒ Column
Returns a new instance of Column.
9 10 11 12 13 14 |
# File 'lib/xmlss/element/column.rb', line 9 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 |
Instance Attribute Details
#auto_fit_width ⇒ Object
Returns the value of attribute auto_fit_width.
7 8 9 |
# File 'lib/xmlss/element/column.rb', line 7 def auto_fit_width @auto_fit_width end |
#hidden ⇒ Object
Returns the value of attribute hidden.
7 8 9 |
# File 'lib/xmlss/element/column.rb', line 7 def hidden @hidden end |
#style_id ⇒ Object
Returns the value of attribute style_id.
7 8 9 |
# File 'lib/xmlss/element/column.rb', line 7 def style_id @style_id end |
#width ⇒ Object
Returns the value of attribute width.
7 8 9 |
# File 'lib/xmlss/element/column.rb', line 7 def width @width end |
Class Method Details
.writer ⇒ Object
5 |
# File 'lib/xmlss/element/column.rb', line 5 def self.writer; :column; end |
Instance Method Details
#autofit ⇒ Object
23 |
# File 'lib/xmlss/element/column.rb', line 23 def autofit; self.auto_fit_width; end |
#autofit=(value) ⇒ Object
24 |
# File 'lib/xmlss/element/column.rb', line 24 def autofit=(value); self.auto_fit_width = value; end |
#autofit? ⇒ Boolean
26 |
# File 'lib/xmlss/element/column.rb', line 26 def autofit?; !!self.autofit; end |
#hidden? ⇒ Boolean
27 |
# File 'lib/xmlss/element/column.rb', line 27 def hidden?; !!self.hidden; end |