Permalink
Browse files

Added to_lolspeak to String.

  • Loading branch information...
1 parent f9a9238 commit 2cec1ff2e1422db50e70e0464f285936bccd5f8b @rwtnorton committed Jun 26, 2011
Showing with 9 additions and 1 deletion.
  1. +8 −0 lib/moar-lolspeak.rb
  2. +1 −1 lib/moar-lolspeak/version.rb
View
@@ -92,3 +92,11 @@ def self.translate(phrase)
end
end
end
+
+class String
+ unless method_defined?(:to_lolspeak)
+ def to_lolspeak
+ Moar::Lolspeak.translate(self)
+ end
+ end
+end
@@ -1,5 +1,5 @@
module Moar
module Lolspeak
- VERSION = "0.0.1"
+ VERSION = "0.0.2"
end
end

0 comments on commit 2cec1ff

Please sign in to comment.