Class: Supertitle::Line

Inherits:
Object
  • Object
show all
Defined in:
lib/supertitle/line.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(start, stop, text) ⇒ Line

Returns a new instance of Line.



4
5
6
7
8
# File 'lib/supertitle/line.rb', line 4

def initialize(start, stop, text)
  @start = start
  @stop = stop
  @text = text
end

Instance Attribute Details

#startObject (readonly)

Returns the value of attribute start.



3
4
5
# File 'lib/supertitle/line.rb', line 3

def start
  @start
end

#stopObject (readonly)

Returns the value of attribute stop.



3
4
5
# File 'lib/supertitle/line.rb', line 3

def stop
  @stop
end

#textObject (readonly)

Returns the value of attribute text.



3
4
5
# File 'lib/supertitle/line.rb', line 3

def text
  @text
end