class Axlsx::Builder::Title
Attributes
hyperlink[RW]
list[RW]
Public Class Methods
new(attrs)
click to toggle source
Calls superclass method
Axlsx::Builder::Element::new
# File lib/axlsx/builder.rb, line 109 def initialize attrs h_align = :center # Default v_align = :center # Default attrs.each {|key, val| self.send("#{key.to_s}=", val)} super end
Public Instance Methods
combined_style()
click to toggle source
Calls superclass method
Axlsx::Builder::Element#combined_style
# File lib/axlsx/builder.rb, line 116 def combined_style combined_style = super combined_style.merge!(b: true, border: {style: :thick, color: '00000000'}) combined_style.merge!(bg_color: self.color) if self.color combined_style end