# File lafcadio/util.rb, line 152 def self.proper_noun(string) proper_noun = "" while(matchIndex = string =~ /[\. ]/) word = string[0..matchIndex-1] word = word.capitalize unless [ 'and', 'the', 'of' ].index(word) != nil proper_noun += word + $& string = string[matchIndex+1..string.length] end word = string word = word.capitalize unless [ 'and', 'the', 'of' ].index(word) != nil proper_noun += word proper_noun end