Class: Utopia::Responder::Handler
- Inherits:
-
Struct
- Object
- Struct
- Utopia::Responder::Handler
- Defined in:
- lib/utopia/responder.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
Instance Method Summary collapse
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block
10 11 12 |
# File 'lib/utopia/responder.rb', line 10 def block @block end |
#content_type ⇒ Object
Returns the value of attribute content_type
10 11 12 |
# File 'lib/utopia/responder.rb', line 10 def content_type @content_type end |
Instance Method Details
#call(context, request, media_range, *arguments, **options) ⇒ Object
15 16 17 |
# File 'lib/utopia/responder.rb', line 15 def call(context, request, media_range, *arguments, **) context.instance_exec(media_range, *arguments, **, &self.block) end |
#split(*arguments) ⇒ Object
11 12 13 |
# File 'lib/utopia/responder.rb', line 11 def split(*arguments) self.content_type.split(*arguments) end |