Skip to content

Commit

Permalink
added optional args, added [goddammit, cunt, ass, shit]
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Mason committed Dec 4, 2011
1 parent b57c564 commit e0cf175
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.rdoc
Expand Up @@ -15,3 +15,5 @@ Why shouldn't it work?
=> true
>> Object.fucking.goddamn.new
=> #<Object:0x101486ed8>
>> Object.fucking(:work).goddammit
=> Object
6 changes: 3 additions & 3 deletions lib/fucking_goddamn_new.rb
@@ -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

0 comments on commit e0cf175

Please sign in to comment.