Class: Kabosu::SentenceRange

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(start, finish, text) ⇒ SentenceRange

Returns a new instance of SentenceRange.



18
19
20
21
22
# File 'lib/kabosu.rb', line 18

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

Instance Attribute Details

#endObject (readonly)

Returns the value of attribute end.



16
17
18
# File 'lib/kabosu.rb', line 16

def end
  @end
end

#startObject (readonly)

Returns the value of attribute start.



16
17
18
# File 'lib/kabosu.rb', line 16

def start
  @start
end

#textObject (readonly)

Returns the value of attribute text.



16
17
18
# File 'lib/kabosu.rb', line 16

def text
  @text
end

Instance Method Details

#to_aObject



24
25
26
# File 'lib/kabosu.rb', line 24

def to_a
  [@start, @end, @text]
end