Module: Musa::MusicXML::Builder::Internal::Helper::ToXML

Included in:
Attributes, Backup, Clef, Forward, Musa::MusicXML::Builder::Internal::Harmonic, Key, Measure, Part, Time, ScorePartwise
Defined in:
lib/musa-dsl/musicxml/builder/helper.rb

Instance Method Summary collapse

Instance Method Details

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



15
16
17
18
19
20
21
22
23
24
# File 'lib/musa-dsl/musicxml/builder/helper.rb', line 15

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

  tabs = "\t" * indent

  _to_xml(io, indent: indent, tabs: tabs)

  io
end