Method: Isono::Rack::ObjectMethod#call
- Defined in:
- lib/isono/rack/object_method.rb
#call(req, res) ⇒ Object
12 13 14 15 16 |
# File 'lib/isono/rack/object_method.rb', line 12 def call(req, res) m = @obj.method(req.command) raise UnknownMethodError, "#{req.command}" if m.nil? res.response(m.arity.abs > 0 ? m.call(*req.args) : m.call) end |