class Osheet::Row
Attributes
cells[R]
format[R]
Public Class Methods
new(height=nil)
click to toggle source
# File lib/osheet/row.rb, line 13 def initialize(height=nil) @height = height @autofit = false @hidden = false @cells = [] @format = Format.new(:general) end
Public Instance Methods
autofit(value=nil)
click to toggle source
# File lib/osheet/row.rb, line 25 def autofit(value=nil) value.nil? ? @autofit : @autofit = !!value end
autofit?()
click to toggle source
# File lib/osheet/row.rb, line 28 def autofit?; @autofit; end
cell(cell_obj)
click to toggle source
# File lib/osheet/row.rb, line 35 def cell(cell_obj) @cells << cell_obj end
height(value=nil)
click to toggle source
# File lib/osheet/row.rb, line 21 def height(value=nil) value.nil? ? @height : @height = value end