Module: Musa::MusicXML::Builder::Internal::Helper::HeaderToXML

Included in:
Part, PartGroup
Defined in:
lib/musa-dsl/musicxml/builder/helper.rb

Instance Method Summary collapse

Instance Method Details

#header_to_xml(io = nil, indent: nil) ⇒ Object



32
33
34
35
36
37
38
39
40
41
# File 'lib/musa-dsl/musicxml/builder/helper.rb', line 32

def header_to_xml(io = nil, indent: nil)
  io ||= StringIO.new
  indent ||= 0

  tabs = "\t" * indent

  _header_to_xml(io, indent: indent, tabs: tabs)

  io
end