Permalink
Browse files

Added documentation

  • Loading branch information...
1 parent f9d937f commit 13e4bad44671089b1959caa069f391cbfa6cde83 @drbrain drbrain committed Apr 5, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/rdoc/generator/spellcheck.rb
@@ -98,6 +98,10 @@ def generate files
end
+ ##
+ # Returns a report of misspellings the +comment+ at +location+ for
+ # documentation item +name+
+
def misspellings_for name, comment, location
out = []
@@ -116,6 +120,9 @@ def misspellings_for name, comment, location
out
end
+ ##
+ # Creates suggestion text for the misspelled +word+ at +offset+ in +text+
+
def suggestion_text text, word, offset
prefix = offset - 10
prefix = 0 if prefix < 0

0 comments on commit 13e4bad

Please sign in to comment.