Class: Frekwenza::StopWords
- Inherits:
-
Object
- Object
- Frekwenza::StopWords
- Defined in:
- lib/frekwenza/stop_words.rb
Instance Attribute Summary collapse
-
#stop_words ⇒ Object
readonly
Returns the value of attribute stop_words.
Instance Method Summary collapse
-
#initialize(sw) ⇒ StopWords
constructor
A new instance of StopWords.
Constructor Details
#initialize(sw) ⇒ StopWords
Returns a new instance of StopWords.
5 6 7 8 9 10 11 12 |
# File 'lib/frekwenza/stop_words.rb', line 5 def initialize(sw) if sw.kind_of?(String) string = read(sw) build_list(string) else @stop_words = sw end end |
Instance Attribute Details
#stop_words ⇒ Object (readonly)
Returns the value of attribute stop_words.
3 4 5 |
# File 'lib/frekwenza/stop_words.rb', line 3 def stop_words @stop_words end |