| Module | NoteSequence |
| In: |
app/models/note_sequence.rb
|
Mixins for a sequence of note represented as an array.
# File app/models/note_sequence.rb, line 3
3: def to_xml(options = {})
4: options[:indent] ||= 2
5: xml = options[:builder] ||= Builder::XmlMarkup.new(:indent => options[:indent])
6: xml.instruct! unless options[:skip_instruct]
7: xml.notes do
8: self.each do |note|
9: xml.tag!(:note, note.to_s)
10: end
11: end
12: end