Class: ClippingsPluck::Clippings
- Inherits:
-
Array
- Object
- Array
- ClippingsPluck::Clippings
- Defined in:
- lib/clippings_pluck/clippings.rb
Instance Method Summary collapse
Instance Method Details
#closest_highlight(note_location) ⇒ Object
3 4 5 |
# File 'lib/clippings_pluck/clippings.rb', line 3 def closest_highlight(note_location) sorted_eligible_note_matches(note_location.normalize).last end |
#with_notes ⇒ Object
7 8 9 |
# File 'lib/clippings_pluck/clippings.rb', line 7 def with_notes select(&:notated?) end |
#without_notes ⇒ Object
11 12 13 |
# File 'lib/clippings_pluck/clippings.rb', line 11 def without_notes self - with_notes end |