Class: Utopia::Controller::Respond::Responder
Instance Attribute Summary
Attributes inherited from Responder
#handlers
Instance Method Summary
collapse
Methods inherited from Responder
#call, #freeze, #handle, #initialize, #respond_to
Instance Method Details
#with(content_type, &block) ⇒ Object
56
57
58
|
# File 'lib/utopia/controller/respond.rb', line 56
def with(content_type, &block)
handle(content_type, &block)
end
|
#with_json ⇒ Object
48
49
50
|
# File 'lib/utopia/controller/respond.rb', line 48
def with_json
@handlers << Handlers::JSON
end
|
#with_passthrough ⇒ Object
52
53
54
|
# File 'lib/utopia/controller/respond.rb', line 52
def with_passthrough
@handlers << Handlers::Passthrough
end
|