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.new(:lyrics, "Copyright 2024 Publisher Name")
rights.to_xml  # => <rights type="lyrics">Copyright 2024 Publisher Name</rights>

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:

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



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

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