Class: Musa::MusicXML::Builder::Internal::Creator Private

Inherits:
TypedText
  • Object
show all
Defined in:
lib/musa-dsl/musicxml/builder/typed-text.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Creator metadata for MusicXML identification section.

Represents a <creator> element specifying who created various aspects of the work (composer, lyricist, arranger, etc.).

Examples:

creator = Creator.new(:composer, "Ludwig van Beethoven")
creator.to_xml  # => <creator type="composer">Ludwig van Beethoven</creator>

Instance Method Summary collapse

Constructor Details

#initialize(type, name) ⇒ Creator

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Creates a creator entry.

Examples:

Creator.new(:composer, "Mozart")
Creator.new(:lyricist, "Da Ponte")

Parameters:

  • type (String, Symbol)

    creator type (e.g., :composer, :lyricist, :arranger)

  • name (String)

    creator's name



71
72
73
74
# File 'lib/musa-dsl/musicxml/builder/typed-text.rb', line 71

def initialize(type, name)
  @tag = 'creator'
  super type, name
end