class Canson::Responder
responsible to return the block
Attributes
base[W]
method[R]
response_handler[R]
Public Class Methods
new(method = nil, &block)
click to toggle source
# File lib/canson/responder.rb, line 9 def initialize(method = nil, &block) @method = method @response_handler = block end
Public Instance Methods
call()
click to toggle source
# File lib/canson/responder.rb, line 14 def call @response_handler end