Module: Roda::RodaPlugins::Base::ResponseClassMethods

Defined in:
lib/roda.rb

Overview

Class methods for RodaResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#roda_classObject

Reference to the Roda class related to this response class.



865
866
867
# File 'lib/roda.rb', line 865

def roda_class
  @roda_class
end

Instance Method Details

#inspectObject

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.



870
871
872
# File 'lib/roda.rb', line 870

def inspect
  "#{roda_class.inspect}::RodaResponse"
end