Class: Musa::MusicXML::Builder::Internal::Dashes Private

Inherits:
DirectionType
  • Object
show all
Defined in:
lib/musa-dsl/musicxml/builder/direction.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.

Dashed line direction type.

Represents dashed extension lines for text or other markings.

Examples:

Start dashed line

dashes 'start'

Stop dashed line

dashes 'stop'

Instance Method Summary collapse

Constructor Details

#initialize(type, &block) ⇒ Dashes

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.

start / stop / continue



402
403
404
405
406
407
408
# File 'lib/musa-dsl/musicxml/builder/direction.rb', line 402

def initialize(type, # start / stop / continue
               &block)

  @type = type

  super
end

Instance Method Details

#_direction_type_to_xml(io, indent:, tabs:) ⇒ 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.



412
413
414
# File 'lib/musa-dsl/musicxml/builder/direction.rb', line 412

def _direction_type_to_xml(io, indent:, tabs:)
  io.puts "#{tabs}<dashes type=\"#{@type}\" />"
end