class Osheet::Column

Attributes

format[R]

Public Class Methods

new(width=nil) click to toggle source
# File lib/osheet/column.rb, line 13
def initialize(width=nil)
  @width   = width
  @autofit = false
  @hidden  = false
  @format  = Format.new(:general)
end

Public Instance Methods

autofit(value=nil) click to toggle source
# File lib/osheet/column.rb, line 24
def autofit(value=nil)
  value.nil? ? @autofit : @autofit = !!value
end
autofit?() click to toggle source
# File lib/osheet/column.rb, line 27
def autofit?; @autofit; end
hidden(value=nil) click to toggle source
# File lib/osheet/column.rb, line 29
def hidden(value=nil)
  value.nil? ? @hidden : @hidden = !!value
end
hidden?() click to toggle source
# File lib/osheet/column.rb, line 32
def hidden?; @hidden; end
width(value=nil) click to toggle source
# File lib/osheet/column.rb, line 20
def width(value=nil)
  value.nil? ? @width : @width = value
end