lib/music-transcription/change.rb in music-transcription-0.9.2 vs lib/music-transcription/change.rb in music-transcription-0.10.0

- old
+ new

@@ -16,12 +16,12 @@ end class Immediate < Change include Validatable + @@check_methods = [ :ensure_zero_duration ] def initialize value - @check_methods = [ :ensure_zero_duration ] super(value,0) end def ensure_zero_duration unless @duration == 0 @@ -31,11 +31,11 @@ end class Gradual < Change include Validatable + @@check_methods = [ :ensure_nonnegative_duration ] def initialize value, transition_duration - @check_methods = [ :ensure_nonnegative_duration ] super(value, transition_duration) end def ensure_nonnegative_duration if @duration < 0 \ No newline at end of file