Method: Axlsx::BorderPr#to_xml_string

Defined in:
lib/axlsx/stylesheet/border_pr.rb

#to_xml_string(str = '') ⇒ String

Serializes the object

Parameters:

  • str (String) (defaults to: '')

Returns:

  • (String)


64
65
66
67
68
# File 'lib/axlsx/stylesheet/border_pr.rb', line 64

def to_xml_string(str = '')
  str << ('<' << @name.to_s << ' style="' << @style.to_s << '">')
  @color.to_xml_string(str) if @color.is_a?(Color)
  str << ('</' << @name.to_s << '>')
end