Module: Musa::MusicXML::Builder::Internal::Helper::NotImplemented Private

Overview

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

Mixin for classes not yet implemented.

Used as a placeholder for MusicXML elements that are planned but not yet implemented. Raises NotImplementedError when attempting to use.

Instance Method Summary collapse

Instance Method Details

#initialize(**_args) ⇒ Object

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.

Placeholder initializer accepting any parameters.

Parameters:

  • _args (Hash)

    ignored keyword arguments



109
# File 'lib/musa-dsl/musicxml/builder/helper.rb', line 109

def initialize(**_args); end

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

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.

Raises error indicating the class is not implemented.

Parameters:

  • io (IO, nil) (defaults to: nil)

    ignored

  • indent (Integer, nil) (defaults to: nil)

    ignored

Raises:

  • (NotImplementedError)

    always raised with helpful message



116
117
118
# File 'lib/musa-dsl/musicxml/builder/helper.rb', line 116

def to_xml(io = nil, indent: nil)
  raise NotImplementedError, "#{self.class} not yet implemented. Ask Javier do his work!"
end