lib/rb-music/note_set.rb in rb-music-0.0.4 vs lib/rb-music/note_set.rb in rb-music-0.0.5
- old
+ new
@@ -36,18 +36,23 @@
end
def <<(other)
@notes << other
end
+ alias_method :push, :<<
def map(&block)
@notes.map(&block)
end
def ==(other)
@notes == other.notes
end
alias_method :eql?, :==
+
+ def size
+ @notes.size
+ end
def add(that)
NoteSet.new(@notes.map { |note| note.add(that) })
end