Exception: Tracksperanto::Middleware::Lint::NonSequentialKeyframes

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/middleware/lint.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ NonSequentialKeyframes

Returns a new instance of NonSequentialKeyframes.



16
17
18
# File 'lib/middleware/lint.rb', line 16

def initialize(args)
  @name, @last_frame, @current_frame = args
end

Instance Method Details

#messageObject



20
21
22
# File 'lib/middleware/lint.rb', line 20

def message
  "A keyframe for #{@name} has been sent that comes before the previous keyframe (#{@current_frame} should NOT come after #{@last_frame})."
end