Class: HeadMusic::Style::Guidelines::MinimumNotes
Overview
Flags a melody with fewer than the required number of notes.
Configure the threshold with the factory, e.g. MinimumNotes.with(8).
Instance Method Summary
collapse
Instance Method Details
#actual_count ⇒ Object
17
18
19
|
# File 'lib/head_music/style/guidelines/minimum_notes.rb', line 17
def actual_count
notes.length
end
|
#marks ⇒ Object
7
8
9
|
# File 'lib/head_music/style/guidelines/minimum_notes.rb', line 7
def marks
placements.empty? ? no_placements_mark : deficiency_mark
end
|
#message ⇒ Object
11
12
13
|
# File 'lib/head_music/style/guidelines/minimum_notes.rb', line 11
def message
"Write at least #{minimum.humanize} notes."
end
|