Class: WhirledPeas::Animator::DebugConsumer
- Inherits:
-
Object
- Object
- WhirledPeas::Animator::DebugConsumer
- Defined in:
- lib/whirled_peas/animator/debug_consumer.rb
Instance Method Summary collapse
Instance Method Details
#add_frameset(frameset) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/whirled_peas/animator/debug_consumer.rb', line 4 def add_frameset(frameset) require 'json' frameset.each_frame do |frame, duration, args| puts [frame, "duration=#{duration}", *(JSON.generate(args) unless args.empty?)].join(' ') end end |
#process ⇒ Object
12 13 14 |
# File 'lib/whirled_peas/animator/debug_consumer.rb', line 12 def process # no op end |