Class: Musa::MusicXML::Builder::Internal::Wedge

Inherits:
DirectionType
  • Object
show all
Includes:
Helper
Defined in:
lib/musa-dsl/musicxml/builder/direction.rb

Instance Method Summary collapse

Methods included from Extension::AttributeBuilder

#attr_complex_adder_to_array, #attr_complex_adder_to_custom, #attr_complex_builder, #attr_simple_builder, #attr_tuple_adder_to_array, #attr_tuple_adder_to_hash, #attr_tuple_builder

Methods included from Helper::ToXML

#to_xml

Methods included from Extension::With

#with

Constructor Details

#initialize(type, niente: nil, &block) ⇒ Wedge

crescendo / diminuendo / stop / continue



127
128
129
130
131
132
133
134
# File 'lib/musa-dsl/musicxml/builder/direction.rb', line 127

def initialize(type, #  crescendo / diminuendo / stop / continue
               niente: nil, # true
               &block)
  @type = type
  @niente = niente

  super
end

Instance Method Details

#_direction_type_to_xml(io, indent:, tabs:) ⇒ Object



139
140
141
# File 'lib/musa-dsl/musicxml/builder/direction.rb', line 139

def _direction_type_to_xml(io, indent:, tabs:)
  io.puts "#{tabs}<wedge type=\"#{@type}\"#{ decode_bool_or_string_attribute(@niente, 'niente', 'yes') }/>"
end