class Object
Public Instance Methods
method_missing(method_name, *args, &block)
click to toggle source
Calls superclass method
# File lib/right_meow.rb, line 32 def method_missing(method_name, *args, &block) if method_name.to_s.match(/meow/) real_method = method_name.to_s.gsub(/meow/, '') $meow_count +=1 send(real_method.to_sym, *args, &block) else super end end
not_meow(n)
click to toggle source
# File lib/right_meow.rb, line 27 def not_meow(n) $meow_count +=1 sleep(n) end