Class: Subtool::Subtitle

Inherits:
Struct
  • Object
show all
Defined in:
lib/subtool/subtitle.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



2
3
4
# File 'lib/subtool/subtitle.rb', line 2

def body
  @body
end

#endObject

Returns the value of attribute end

Returns:

  • (Object)

    the current value of end



2
3
4
# File 'lib/subtool/subtitle.rb', line 2

def end
  @end
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



2
3
4
# File 'lib/subtool/subtitle.rb', line 2

def id
  @id
end

#startObject

Returns the value of attribute start

Returns:

  • (Object)

    the current value of start



2
3
4
# File 'lib/subtool/subtitle.rb', line 2

def start
  @start
end

Instance Method Details

#add_delay(amount) ⇒ Object



4
5
6
7
# File 'lib/subtool/subtitle.rb', line 4

def add_delay(amount)
  self[:start] = self[:start] + amount
  self[:end] = self[:end] + amount
end