lib/head_music/content/placement.rb in head_music-0.27.0 vs lib/head_music/content/placement.rb in head_music-0.28.0
- old
+ new
@@ -32,11 +32,11 @@
def during?(other_placement)
starts_during?(other_placement) || ends_during?(other_placement) || wraps?(other_placement)
end
def to_s
- "#{rhythmic_value} #{pitch || 'rest'} at #{position}"
+ "#{rhythmic_value} #{pitch || "rest"} at #{position}"
end
private
def starts_during?(other_placement)
@@ -58,11 +58,11 @@
@pitch = HeadMusic::Pitch.get(pitch)
end
def ensure_position(position)
@position = if position.is_a?(HeadMusic::Position)
- position
- else
- HeadMusic::Position.new(composition, position)
- end
+ position
+ else
+ HeadMusic::Position.new(composition, position)
+ end
end
end