class Subconv::Caption

Caption displayed on the screen at a specific position for a given amount of time

Attributes

align[RW]
content[RW]
position[RW]
timespan[RW]

Public Class Methods

new(params) click to toggle source
# File lib/subconv/caption.rb, line 96
def initialize(params)
  # :start, :middle or :end
  @align = params[:align]
  @timespan = params[:timespan]
  # Position instance, :top or :bottom
  @position = params[:position]
  @content = params[:content]
end

Public Instance Methods

==(other) click to toggle source
# File lib/subconv/caption.rb, line 105
def ==(other)
  self.class == other.class && @timespan == other.timespan && @position == other.position && @content == other.content
end