Sha256: acf2597f6fbd06b2c2a608cb1411e9322f8cbcc76a33accba60d59abeca738df

Contents?: true

Size: 422 Bytes

Versions: 8

Compression:

Stored size: 422 Bytes

Contents

# = Dumb Responder
#
# This responder discards all messages sent to him.
#
module InheritedResources #:nodoc:
  class DumbResponder #:nodoc:

    instance_methods.each do |m|
      undef_method m unless m =~ /^__/
    end

    # This is like a good husband, he will just listen everything that his wife
    # says (which is a lot) without complaining. :)
    def method_missing(*args)
      return true
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
josevalim-inherited_resources-0.2.0 lib/inherited_resources/dumb_responder.rb
josevalim-inherited_resources-0.2.1 lib/inherited_resources/dumb_responder.rb
josevalim-inherited_resources-0.2.2 lib/inherited_resources/dumb_responder.rb
josevalim-inherited_resources-0.3 lib/inherited_resources/dumb_responder.rb
josevalim-inherited_resources-0.4.1 lib/inherited_resources/dumb_responder.rb
josevalim-inherited_resources-0.4.2 lib/inherited_resources/dumb_responder.rb
josevalim-inherited_resources-0.4.3 lib/inherited_resources/dumb_responder.rb
josevalim-inherited_resources-0.4 lib/inherited_resources/dumb_responder.rb