class Document
Public Class Methods
new(content)
click to toggle source
# File lib/engine/document.rb, line 2 def initialize content @tokens = content.downcase.split. reject { |item| item.strip.empty? }. uniq end
Public Instance Methods
each_token() { |token| ... }
click to toggle source
# File lib/engine/document.rb, line 8 def each_token @tokens.each { |token| yield token } end