Skip to content

Commit

Permalink
Added to_lolspeak to String.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwtnorton committed Jun 26, 2011
1 parent f9a9238 commit 2cec1ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions lib/moar-lolspeak.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -92,3 +92,11 @@ def self.translate(phrase)
end end
end end
end end

class String
unless method_defined?(:to_lolspeak)
def to_lolspeak
Moar::Lolspeak.translate(self)
end
end
end
2 changes: 1 addition & 1 deletion lib/moar-lolspeak/version.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,5 @@
module Moar module Moar
module Lolspeak module Lolspeak
VERSION = "0.0.1" VERSION = "0.0.2"
end end
end end

0 comments on commit 2cec1ff

Please sign in to comment.