lib/head_music/content/placement.rb in head_music-0.20.0 vs lib/head_music/content/placement.rb in head_music-0.22.0
- old
+ new
@@ -31,10 +31,10 @@
def during?(other_placement)
starts_during?(other_placement) || ends_during?(other_placement) || wraps?(other_placement)
end
def to_s
- "#{rhythmic_value} #{pitch ? pitch : 'rest'} at #{position}"
+ "#{rhythmic_value} #{pitch.presence || 'rest'} at #{position}"
end
private
def starts_during?(other_placement)