Class: LongTweet::NaiveSplitter
- Defined in:
- lib/long_tweet/naive_splitter.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ NaiveSplitter
constructor
A new instance of NaiveSplitter.
- #split ⇒ Object
Methods inherited from Splitter
Constructor Details
#initialize(text) ⇒ NaiveSplitter
Returns a new instance of NaiveSplitter.
4 5 6 |
# File 'lib/long_tweet/naive_splitter.rb', line 4 def initialize text @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
3 4 5 |
# File 'lib/long_tweet/naive_splitter.rb', line 3 def text @text end |