lib/company/mapping/document_utils/text_document.rb in company-mapping-0.1.0 vs lib/company/mapping/document_utils/text_document.rb in company-mapping-0.2.0

- old
+ new

@@ -1,8 +1,8 @@ module Company module Mapping - + # A simple text document class TextDocument attr_accessor :id, :contents, :tokenizer def initialize(id = SecureRandom.uuid, contents = "", tokenizer = BasicTokenizer.new) @id, @contents, @tokenizer = id, contents, tokenizer @@ -20,21 +20,16 @@ def ==(o) o.class == self.class && o.state == self.state end - def info - return "A simple text document" - end - def to_s "TextDocument:{#{id},#{contents}}" end protected def state [@id] end end - end end