Module: Roda::RodaPlugins::Base::ResponseClassMethods
- Defined in:
- lib/roda/response.rb
Overview
Class methods for RodaResponse
Instance Attribute Summary collapse
-
#roda_class ⇒ Object
Reference to the Roda class related to this response class.
Instance Method Summary collapse
-
#inspect ⇒ Object
Since RodaResponse is anonymously subclassed when Roda is subclassed, and then assigned to a constant of the Roda subclass, make inspect reflect the likely name for the class.
Instance Attribute Details
#roda_class ⇒ Object
Reference to the Roda class related to this response class.
37 38 39 |
# File 'lib/roda/response.rb', line 37 def roda_class @roda_class end |
Instance Method Details
#inspect ⇒ Object
Since RodaResponse is anonymously subclassed when Roda is subclassed, and then assigned to a constant of the Roda subclass, make inspect reflect the likely name for the class.
42 43 44 |
# File 'lib/roda/response.rb', line 42 def inspect "#{roda_class.inspect}::RodaResponse" end |