lib/ext/string.rb in log2mail-0.0.1.pre3 vs lib/ext/string.rb in log2mail-0.0.1.pre4

- old
+ new

@@ -18,6 +18,12 @@ rxp = Regexp.new( self ) def rxp.from_string?; true end rxp end end + + def pluralize + return self if self.to_s[-1] == 's' + (self.to_s + 's') + end + end