module Hollow::Resource::Stateful
Marks a class as a {Hollow::Resource} that may be used by {Hollow::Application} instances to handle requests. Each time {Hollow::Application#handle_request} delegates to a Stateful
resource, a new instance of the resource is created to service the request. @see Hollow::Resource::Stateless
Private Class Methods
included(base)
click to toggle source
# File lib/hollow/resource/stateful.rb, line 11 def self.included(base) unless base.is_a?(Hollow::Resource) base.extend(Hollow::Resource) end def base.get_instance self.new end end