lib/aviglitch/frame.rb in aviglitch-0.0.2 vs lib/aviglitch/frame.rb in aviglitch-0.0.3

- old
+ new

@@ -11,11 +11,11 @@ attr_accessor :data attr_reader :id, :flag ## - # Create a new AviGlitch::Frame object. + # Creates a new AviGlitch::Frame object. # # The arguments are: # [+data+] just data, without meta-data # [+id+] id for the stream number and content type code # (like "00dc") @@ -33,20 +33,20 @@ is_videoframe? && @flag & AVIIF_KEYFRAME != 0 end ## # Alias for is_keyframe? - alias :is_iframe? :is_keyframe? + alias_method :is_iframe?, :is_keyframe? ## # Returns if it is a video frame and also not a key frame. def is_deltaframe? is_videoframe? && @flag & AVIIF_KEYFRAME == 0 end ## # Alias for is_deltaframe? - alias :is_pframe? :is_deltaframe? + alias_method :is_pframe?, :is_deltaframe? ## # Returns if it is a video frame. def is_videoframe? @id[2, 2] == 'db' || @id[2, 2] == 'dc'