Class: Musa::MusicXML::Builder::Internal::Rights 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.

Rights metadata for MusicXML identification section.

Represents a <rights> element specifying copyright, licensing, or attribution information.

Examples:

Rights

rights = Rights.new(:lyrics, "Copyright 2024 Publisher Name")
rights.to_xml.string
# => "<rights type=\"lyrics\">Copyright 2024 Publisher Name</rights>\n"

Instance Method Summary collapse

Constructor Details

#initialize(type, name) ⇒ Rights

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 rights entry.

Examples:

Several kinds of rights

Rights.new(:music, "Copyright 2024 ACME Publishing")
Rights.new(:lyrics, "Public Domain")

Parameters:

  • type (String, Symbol)

    rights type (e.g., :lyrics, :music, :arrangement)

  • name (String)

    rights statement or holder name



96
97
98
99
# File 'lib/musa-dsl/musicxml/builder/typed-text.rb', line 96

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