lib/music-transcription/link.rb in music-transcription-0.7.0 vs lib/music-transcription/link.rb in music-transcription-0.7.1
- old
+ new
@@ -21,21 +21,17 @@
def clone
self.class.new @target_pitch.clone
end
- { :Slur => "=",
- :Legato => "-",
- :Glissando => "~",
- :Portamento => "/",
- }.each do |name,print_str|
+ [ :Slur,
+ :Legato,
+ :Glissando,
+ :Portamento,
+ ].each do |name|
klass = Class.new(Link) do
def initialize target_pitch
super(target_pitch)
- end
-
- def to_s
- print_str + @target_pitch
end
end
Link.const_set(name.to_sym, klass)
end
end