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.



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

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

Instance Attribute Details

#endObject (readonly)

Returns the value of attribute end.



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

def end
  @end
end

#startObject (readonly)

Returns the value of attribute start.



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

def start
  @start
end

#textObject (readonly)

Returns the value of attribute text.



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

def text
  @text
end

Instance Method Details

#to_aObject



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

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