Class: Kabosu::SentenceRange
- Inherits:
-
Object
- Object
- Kabosu::SentenceRange
- Defined in:
- lib/kabosu.rb
Instance Attribute Summary collapse
-
#end ⇒ Object
readonly
Returns the value of attribute end.
-
#start ⇒ Object
readonly
Returns the value of attribute start.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(start, finish, text) ⇒ SentenceRange
constructor
A new instance of SentenceRange.
- #to_a ⇒ Object
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
#end ⇒ Object (readonly)
Returns the value of attribute end.
16 17 18 |
# File 'lib/kabosu.rb', line 16 def end @end end |
#start ⇒ Object (readonly)
Returns the value of attribute start.
16 17 18 |
# File 'lib/kabosu.rb', line 16 def start @start end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
16 17 18 |
# File 'lib/kabosu.rb', line 16 def text @text end |
Instance Method Details
#to_a ⇒ Object
24 25 26 |
# File 'lib/kabosu.rb', line 24 def to_a [@start, @end, @text] end |