Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
first_sentence(string)
private
Get the first sentence in a string. The sentence is terminated by the first
period or the end of the line. Decimal points do not count as
periods.
# File lib/rake/task.rb, line 301
def first_sentence(string)
string.split(/\.[ \t]|\.$|\n/).first
end