forked from jamesdaniels/fucking-goddamn-new
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added optional args, added [goddammit, cunt, ass, shit]
- Loading branch information
Brandon Mason
committed
Dec 4, 2011
1 parent
b57c564
commit e0cf175
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
class Object | ||
|
||
%w( fucking fuck damn god damn goddamn bitch chickenfucker motherfucker ).each do |word| | ||
%w( fucking fuck damn god goddamn goddammit cunt ass shit bitch chickenfucker motherfucker ).each do |word| | ||
sym = word.to_sym | ||
define_method(sym) { self } unless respond_to?(sym) | ||
define_method(sym) {|*args| self } unless respond_to?(sym) | ||
|
||
sym = "#{ word }!".to_sym | ||
define_method(sym) { self } unless respond_to?(sym) | ||
define_method(sym) {|*args| self } unless respond_to?(sym) | ||
end | ||
|
||
end |