Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class FileReader
- DEFAULT_FILE = 'stop_words.txt'
- def initialize(where = DEFAULT_FILE)
- @where = where
- read_words
- end
- def read_words(i = @where)
- sw = File.readlines(i).map {|x| x.chomp}
- p sw
- end
- end
- FileReader.new # default way.
Add Comment
Please, Sign In to add comment