Sha256: 7251fb670452c3a1aaa23d721945ef169fd44a228ec9e97d04d68e7c03d47406
Contents?: true
Size: 855 Bytes
Versions: 1
Compression:
Stored size: 855 Bytes
Contents
require 'osheet/cell' module Osheet class Row include Associations include WorkbookElement include WorksheetElement include StyledElement include MetaElement hm :cells def initialize(workbook=nil, worksheet=nil, *args, &block) @workbook = workbook @worksheet = worksheet @height = nil @autofit = false @hidden = false instance_exec(*args, &block) if block_given? end def height(value=nil) !value.nil? ? @height = value : @height end def autofit(value); @autofit = !!value; end def autofit?; @autofit; end def hidden(value); @hidden = !!value; end def hidden?; @hidden; end def attributes { :style_class => @style_class, :height => @height, :autofit => @autofit, :hidden => @hidden } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
osheet-0.4.0 | lib/osheet/row.rb |