Class: Osheet::Column
- Inherits:
-
Object
- Object
- Osheet::Column
- Includes:
- MetaElement, StyledElement
- Defined in:
- lib/osheet/column.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
Instance Method Summary collapse
- #autofit(value = nil) ⇒ Object
- #autofit? ⇒ Boolean
- #hidden(value = nil) ⇒ Object
- #hidden? ⇒ Boolean
-
#initialize(width = nil) ⇒ Column
constructor
A new instance of Column.
- #width(value = nil) ⇒ Object
Methods included from StyledElement
Methods included from MetaElement
Constructor Details
Instance Attribute Details
#format ⇒ Object (readonly)
Returns the value of attribute format.
11 12 13 |
# File 'lib/osheet/column.rb', line 11 def format @format end |
Instance Method Details
#autofit(value = nil) ⇒ Object
24 25 26 |
# File 'lib/osheet/column.rb', line 24 def autofit(value=nil) value.nil? ? @autofit : @autofit = !!value end |
#autofit? ⇒ Boolean
27 |
# File 'lib/osheet/column.rb', line 27 def autofit?; @autofit; end |
#hidden(value = nil) ⇒ Object
29 30 31 |
# File 'lib/osheet/column.rb', line 29 def hidden(value=nil) value.nil? ? @hidden : @hidden = !!value end |
#hidden? ⇒ Boolean
32 |
# File 'lib/osheet/column.rb', line 32 def hidden?; @hidden; end |
#width(value = nil) ⇒ Object
20 21 22 |
# File 'lib/osheet/column.rb', line 20 def width(value=nil) value.nil? ? @width : @width = value end |