Method: Mosaic::Module.respond_to

Defined in:
lib/mosaic/module.rb

.respond_to(type, path) ⇒ Object

Class method for modules, if called the responder is declaring that it is capable of handling requests of the supplied type for the supplied path Called as:

respond_to :get, "/foo"


51
52
53
# File 'lib/mosaic/module.rb', line 51

def self.respond_to(type, path)
  Mosaic.add_response(type, path, self)
end