Modules: Colored
3 4 5 6 7 8 9 10 11 12
# File 'lib/colored/not.rb', line 3 def Colored! String.class_eval do Colored.instance_methods.each do |m| undef_method m define_method(m) do |*args| Colored.instance_method(m).bind(self).call(*args) end end end end