Module: TaintAliases

Included in:
Object
Defined in:
lib/taint_aliases.rb,
lib/taint_aliases/version.rb

Constant Summary collapse

TAINT_ALIASES =
%w[grundle fleshy_fun_bridge perineum gouch gooch grundel]
VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/taint_aliases.rb', line 6

def self.included(receiver)
  TAINT_ALIASES.each do |a|
    suffix = 'aeiou'[a[-1]] ? 'd': 'ed'
    
    receiver.send(:alias_method, a, :taint)
    receiver.send(:alias_method, "un" + a, :untaint)
    receiver.send(:alias_method, a + suffix + "?", :tainted?)
  end
end