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.



29
30
31
32
33
# File 'lib/kabosu.rb', line 29

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

Instance Attribute Details

#endObject (readonly)

Returns the value of attribute end.



27
28
29
# File 'lib/kabosu.rb', line 27

def end
  @end
end

#startObject (readonly)

Returns the value of attribute start.



27
28
29
# File 'lib/kabosu.rb', line 27

def start
  @start
end

#textObject (readonly)

Returns the value of attribute text.



27
28
29
# File 'lib/kabosu.rb', line 27

def text
  @text
end

Instance Method Details

#to_aObject



35
36
37
# File 'lib/kabosu.rb', line 35

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